codeblock设置快捷键
第一步:
SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。第二步:
第三步:
格式化代码设置:
在代码框里点右键,按Format use Astyle就会自动代码格式化了
但是它默认的风格是大括号另起一行,很不习惯,实际上是可以改的
1.Setting->Editor->Source Formatter->style->Bracket style 修改成Java
2.Setting->Editor->Source Formatter->Formatting->Insert space padding around operators 打勾
这样格式化出来的代码就很好看了
添加AStyle快捷键:
Settings -> Editor -> Keyboard shortcuts -> Plugins -> Source code formatter(AStyle)

更多精彩