atom-beautify uncrustify配置c/c++格式化样式

推荐使用 Everythin (文件搜索工具) 以减少工作量

1. 安装 atom-beautify

2. http://uncrustify.sourceforge.net/ 下载 uncrustify,并解压

3. 将解压后的整个文件夹,放到文件夹 C:\Users\Administrator.000\.atom\packages\atom-beautify,此时,atom-beautify 文件夹与 uncrustify-0.69.0-win64 文件夹在同一级目录下。

4. 将 uncrustify-0.69.0-win64 加入环境变量(此处,我在最初更改了文件夹名字)

 5. ctrl + alt + n 格式化代码。

6. 如果格式化效果不理想,可以回到 uncrustify-0.69.0-win64 文件夹下面的 cfg 文件夹选择里面的任一一个文件(例如 linux.cfg)

 7. 复制 linux.cfg 的绝对路径,添加到 atom-beautify -> settings -> C或C++ 下的 Config Path 里。

 8. 再次 ctrl + alt + b 格式化代码

猜你喜欢

转载自www.cnblogs.com/xiangsui/p/11708228.html
今日推荐