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

相关推荐
iCora2 小时前
vim入门
linux·编辑器·vim
辣椒酱.21 小时前
vscode报错------控制台
vscode·编辑器
自己的九又四分之三站台1 天前
Manium:现代化的数学动画创作引擎(Manim 的可视化编辑器方向项目)
编辑器
粤M温同学1 天前
VsCode快速打出console.log()方法设置
vscode·编辑器
nnsix1 天前
Unity XR 编辑器VR设备模拟功能
unity·编辑器·xr
前端小臻1 天前
分享一个vscode的todo插件(todo Tree 包含使用
ide·vscode·编辑器
[J] 一坚1 天前
实用shell脚本学习分享一
linux·运维·编辑器
YoungHong19921 天前
把Google Antigravity(或任何基于VS Code开源构建的编辑器)的插件市场切换为微软官方市场
microsoft·编辑器
韩曙亮1 天前
【VSCode】设置中文、多标签设置 ( 设置显示语言 | 批量打开标签 | 标签栏切换 )
ide·vscode·编辑器·开发工具
Teln_小凯1 天前
解决VSCode 安装PlatformIO后,第一次创建项目很慢的问题
ide·vscode·编辑器