codeblock code formatting

codeblock code formatting

Right-click in the code box, and press Format use Astyle to automatically format the code, but its default style is to start a new line with braces, which is very unaccustomed, but can actually be changed

1.Setting->Editor->Source Formatter->style->Bracket style 修改成Java

2.Setting->Editor->Source Formatter->Formatting->Insert space padding around operators 打勾

The code formatted like this is very good

Add AStyle shortcut keys:

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

Guess you like

Origin blog.csdn.net/m0_50089378/article/details/109278971