Code::Blocks 使用 AStyle 格式化 C/C++ 代码

萝らか妹 提交于 2019-11-29 05:09:43

AStyle

A Free, Fast, and Small Automatic Formatter
for C, C++, C++/CLI, Objective‑C, C#, and Java Source Code

Project Page: http://astyle.sourceforge.net/
SourceForge: http://sourceforge.net/projects/astyle/

Artistic Style is a source code indenter, formatter, and beautifier for the C, C++, C++/CLI, Objective‑C, C# and Java programming languages.

Code::Blocks Source code formatter plugin

Code::Blocks 的 Source code formatter plugin 使用 AStyle 格式化 C/C++ 代码。

Settings -> Editor -> Source formatter

Figure 1: Style

Figure 2: Brackets

Figure 3: Indentation

Figure 4: Formatting

Figure 5: Padding

Source code formatter (AStyle) shortcut

Settings -> Editor -> Keyboard shortcuts -> Plugins -> Source code formatter (AStyle)

shortcut: Ctrl-Shift-I(Indent)

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!