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

相关推荐
zpjing~.~5 小时前
Vim 高效批量替换实战:从 /dev/ 替换为 /dev-ai/
人工智能·编辑器·vim
苏辰澈6 小时前
C++独属于自己的变身:多态
c语言·开发语言·c++·visualstudio·编辑器
golang学习记16 小时前
VSCode多光标迎来重大更新
ide·vscode·编辑器
sm_9267870516 小时前
RFID 标签打印的技术实现要点与二次开发实践
java·大数据·前端·c++·编辑器
小李不困还能学1 天前
VSCode远程开发免密码登录
ide·vscode·编辑器
?? Daisy1 天前
Codex 接入第三方 API:CLI 与编辑器扩展的配置方法(2026-10)
编辑器
初雪云2 天前
UniApp 云打包拿到 IPA 后,真正的发布工作才刚开始
ios·自动化·编辑器·产品经理·iphone
幸运小圣3 天前
Buffer 新手入门【Node.js】
node.js·编辑器·vim
*wait for?3 天前
VScode使用uv-创建python虚拟环境
ide·vscode·编辑器
lzx_0023 天前
Linux 开发工具(二) 简单认识一下编辑器 —— vim
linux·编辑器·vim