Sublime Text SublimeAStyleFormatter autoformat不起作用

I understand many windows users are facing the same issue on their systems too. It's probably because you may have installed fresh OS on your system. so let's get to the solving part. I am assuming if you are reading this answer you're already done with this step:

复制代码
Preferences > Browse Packages > SublimeAStyleFormatter > SublimeAStyleFormatter.sublime-settings > "autoformat_on_save": true, (change false to true in line 8)

(If not then do the above step after installing AsytleFormatter package in sublime, and give it a go-to check whether it started working or not)

Now, after this, if your formatter still doesn't work there is a major chance your system doesn't have Microsoft Visual C++ 2010 x64 Redistributable - 10.040219

here is the official link : Microsoft Visual C++ 2010 x64 Redistributable-10.040219

https://www.microsoft.com/en-us/download/details.aspx?id=26999

install this software, relaunch sublime editor and you are good to go.

PS: For confirmation do the following (I have added snap for reference Screenshot):

  1. Right-click in the file on your sublime editor
  2. Hover over AStyleFormatter
  3. Now you will be able to see the "format" option (which previously was greyed out)

( Hope it helps to solve the issue!)

链接:c++ - File not formatting after saving in Sublime even when SublimeAstyleformatter's autoformat_on_save is true - Stack Overflow

相关推荐
claider15 小时前
Vim User Manual 阅读笔记 Usr_05.txt Set your settings 设置你的设置
笔记·编辑器·vim
海棠AI实验室15 小时前
第七章 断点调试:VSCode 调试全流程(含常见坑)
ide·vscode·编辑器
淮北49416 小时前
通过VSCODE下在markdown插件编辑查看
ide·vscode·编辑器
多看书少吃饭18 小时前
OnlyOffice 编辑器的实现及使用
前端·vue.js·编辑器
say_fall20 小时前
泛型编程基石:C++ 模板从入门到熟练
java·开发语言·c++·编辑器·visual studio
你我一见如故20 小时前
Linux基础(4)Linux中的开发工具(1)--yum和vim
linux·服务器·编辑器·vim
Sylvan Ding21 小时前
Cursor配置迁移到VSCode
ide·vscode·编辑器·cursor·配置迁移
卖冰糖葫芦的大叔21 小时前
解决vscode与cursor在终端中无法使用code和cursor命令的问题
ide·vscode·编辑器
夜流冰2 天前
VSCode - 显示EOL字符的插件
ide·vscode·编辑器