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

相关推荐
权、狐妖21 小时前
【Vscode安装ESlint插件、下载ESLint包以及他们之间的关系和使用】
ide·vscode·编辑器
摇滚侠1 天前
VScode 需要安装的插件和修改的设置
ide·vscode·编辑器
Molesidy1 天前
【VSCode】VSCode+Claude Code插件+DeepSeek API Key的环境搭建
ide·vscode·编辑器·deepseek·claude code
☆MOON1 天前
Microsoft Visual Studio快捷键大全
编辑器
小贺儿开发2 天前
Unity UGUI 可视化热区编辑与交互系统
unity·编辑器·游戏引擎·交互·工具·适配·ugui
我命由我123452 天前
VSCode - VSCode 自定义折叠区域
前端·javascript·ide·vscode·前端框架·编辑器·js
π同学2 天前
ESP-IDF+vscode开发ESP32第十四讲——UHCI
ide·vscode·编辑器
纪伊路上盛名在2 天前
Vscode LLM备用方案
ide·vscode·编辑器
有态度的时光2 天前
Vscode/cursor编辑器无法识别conda命令或者切换找不到包
vscode·编辑器·conda·找不到包
大神15732 天前
重磅免费开放!基于B/S模式的Peach-Editor电子病历编辑器正式上线
javascript·编辑器·web