一. 自动排版快捷键: ctrl+shift+F
若不起作用,应该是快捷键冲突;
可以点击 source -> Format.
二. 更改单行最大字数
windows -> preferences -> c/c+±> code style -> formatter -> edit -> line warpping -> maximum line width
如果使用的默认风格会提示无法更改;此时默认风格新建一个自己的profile,再更改
相关文章:
一. 自动排版快捷键: ctrl+shift+F
若不起作用,应该是快捷键冲突;
可以点击 source -> Format.
二. 更改单行最大字数
windows -> preferences -> c/c+±> code style -> formatter -> edit -> line warpping -> maximum line width
如果使用的默认风格会提示无法更改;此时默认风格新建一个自己的profile,再更改
相关文章: