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

相关推荐
jianmin09206 小时前
Python人工智能编程从零开始掌握机器学习基础
sublime text
bryant_meng7 小时前
【VSCode】Visual Studio Code
ide·vscode·编辑器·ssh·debug
wulaladamowang20 小时前
日常踩雷系列-vscode无法输入中文
ide·vscode·编辑器
徐归阳1 天前
DevEco Studio安装
编辑器·harmonyos
HBR666_1 天前
AI编辑器(FIM补全,AI扩写)简介
前端·ai·编辑器·fim·tiptap
夫唯不争,故无尤也2 天前
安装好vscode后,缺少vscode打开文件或文件夹选项
ide·vscode·编辑器
‍。。。2 天前
vscode 一键导出导入所有插件
ide·vscode·编辑器
Strinkin_2 天前
Windows11配置MSYS2+vscode+cpp+cmake环境
ide·vscode·编辑器
加油_Yeah2 天前
cursor使用之没有正常的编辑器中的运行箭头
编辑器·cursor
HBR666_2 天前
AI编辑器(二) ---调用模型的fim功能
前端·ai·编辑器·fim·tiptap