首页 > 编程语言 > 详细

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

时间:2019-09-04 00:01:16      阅读:123      评论:0      收藏:0      [点我收藏+]

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)

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

原文:https://www.cnblogs.com/typescript/p/11456493.html

(1)
(1)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!