格式化代码
快捷键 Ctrl + Shift + F
设置代码格式
- Java:Preferences - Java - Code Style - Formatter,一般默认的就可以
- XML:Preferences - XML - XML Files - Editor,勾选Split multiple attributes on a new line,两个空格缩进的风格选择Indent using spaces 2
快捷键 Ctrl + Shift + F
本文标题:Eclipse使用
本文链接:https://www.haomeiwen.com/subject/mupijxtx.html
网友评论