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

相关推荐
1alisa11 小时前
Sublime Text for Mac v4【注册汉化版】代码编辑器
macos·编辑器·sublime text
神码编程11 小时前
【Unity】 HTFramework框架(六十四)SaveDataRuntime运行时保存组件参数、预制体
unity·编辑器·游戏引擎
mzak14 小时前
vscode集成deepseek实现辅助编程(银河麒麟系统)【详细自用版】
linux·vscode·编辑器·银河麒麟·deepseek
一个程序员(●—●)14 小时前
编辑器检视器面板深度扩展2+编辑器菜单栏扩展
编辑器
进阶的小木桩16 小时前
Visual Studio Code配置自动规范代码格式
ide·vscode·编辑器
归叶再无青19 小时前
Mark down编辑器
编辑器
修复bug20 小时前
trae.ai 编辑器:前端开发者的智能效率革命
人工智能·编辑器·aigc
Liudef0621 小时前
deepseek v3-0324 化学键线式Canvas编辑器设计
编辑器·deepseek
1024小神1 天前
vscode/cursor编辑器中vue3文件里面的css不能注释解决办法
css·vscode·编辑器
2501_906801482 天前
BY组态-低代码web可视化组件
前端·物联网·低代码·数学建模·编辑器·web