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

相关推荐
!!!525几秒前
如何将mobaxterm的默认编辑器修改为vscode
编辑器
CaptainDrake1 小时前
React低代码项目:问卷编辑器
react.js·低代码·编辑器
Williams101 小时前
解锁高效开发新姿势:Trae AI编辑器深度体验
人工智能·编辑器
waicsdn_haha14 小时前
TeX Live 2025 最新版安装与中文环境配置全教程(Windows/Mac/Linux)
linux·windows·macos·论文笔记·sublime text·mdk·嵌入式开发工具
椰萝Yerosius18 小时前
计算机工具基础(五)——Vim
linux·编辑器·vim
m0_748234081 天前
Node.js使用教程
node.js·编辑器·vim
朗迹 - 张伟1 天前
UE5 编辑器辅助/加强 插件搜集
ue5·编辑器
莲动渔舟1 天前
国产编辑器EverEdit - 贴心的AES加密功能
编辑器·emeditor·notepad·everedit
2401_882727971 天前
组态软件在物联网中的应用
运维·前端·物联网·数学建模·编辑器
LXY202305041 天前
模版语法vscode
ide·vscode·编辑器