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

相关推荐
莲动渔舟1 小时前
妙用编辑器:如何使用编辑器的筛选功能更高效的阅读日志
编辑器
神洛华1 小时前
Y3编辑器教程8:资源管理器与存档、防作弊设置
编辑器·游戏引擎·游戏程序
scoone2 小时前
VSCode 性能优化指南:提高编码效率,减少资源占用
ide·vscode·编辑器
html组态4 小时前
web组态可视化编辑器
前端·物联网·编辑器·web组态·组态·组态软件
WebCandy6 小时前
Github Copilot:已免费,速回归!!!
编辑器·github·copilot·ai编程
乐闻x7 小时前
VSCode 插件开发实战(九): 不同插件之间如何通信
ide·vscode·编辑器
乐闻x7 小时前
VSCode 插件开发实战(十): 环境变量Env设置与管理
ide·vscode·编辑器
机器懒得学习7 小时前
打造高效的 LaTeX 公式编辑器
编辑器
向宇it1 天前
【从零开始入门unity游戏开发之——unity篇02】unity6基础入门——软件下载安装、Unity Hub配置、安装unity编辑器、许可证管理
开发语言·unity·c#·编辑器·游戏引擎
徐小夕@趣谈前端1 天前
可视化大屏编辑器, 开源!
编辑器