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 havMicrosoft 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

原文地址:https://blog.csdn.net/xyz599/article/details/134671596

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。

如若转载,请注明出处:http://www.7code.cn/show_5267.html

如若内容造成侵权/违法违规/事实不符,请联系代码007邮箱:suwngjj01@126.com进行投诉反馈,一经查实,立即删除

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注