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

相关推荐
Mortal_hhh28 分钟前
VScode的C/C++点击转到定义,不是跳转定义而是跳转声明怎么办?(内附详细做法)
ide·vscode·stm32·编辑器
电子云与长程纠缠10 小时前
UE5.3中通过编辑器工具创建大纲菜单文件夹
java·ue5·编辑器
lucky九年11 小时前
vscode翻译插件
ide·vscode·编辑器
真·Wild·攻城狮12 小时前
【码农日常】Vscode Clangd初始化失败(Win10)
ide·vscode·编辑器
七灵微12 小时前
【测试】【Debug】vscode中同一个测试用例出现重复
ide·vscode·编辑器
4U2471 天前
Linux入门之vim
linux·编辑器·vim·命令模式·底行模式
Liquor14191 天前
vim 编辑器
java·linux·c语言·开发语言·python·编辑器·vim
skywalk81631 天前
三周精通FastAPI:33 在编辑器中调试
python·编辑器·fastapi
188_djh2 天前
# vim那些事...... vim删除文件全部内容
linux·ubuntu·centos·编辑器·vim·vi·vim删除文件全部内容
虞书欣的62 天前
Python小游戏22——吃豆豆小游戏
python·算法·游戏·编辑器·pygame