idea设置文件缩进为2个空格
位置:File > Settings > Editor > Code Style > Java > Tabs and Indents > Use tab characterFile > Settings > Editor > Code Style > JavaScriptFile > Settings > Editor >
·
位置:
File > Settings > Editor > Code Style > Java > Tabs and Indents > Use tab character
File > Settings > Editor > Code Style > JavaScript
File > Settings > Editor > Code Style > Html
Indent项目改为2
JavaScript的 Indent、Continuation indent项目改为2。

点击ok即可
默认整理代码快捷键Ctrl+Alt+L。
更多推荐


所有评论(0)