类似VS 中的ctrl +f+k
|
1
用格式化,Menu -> Code -> Reformat Code (ctrl+alt+l)
缩进的格式,换行,对齐方式可以在 Setting (ctrl+alt+s)(command+,) 中的 code style 中调整 |
|
jianghu52Sep 8, 2013
2
我比较喜欢sublime text 里面的对齐,不过用的插件
|
|
daweibaoJul 24, 2014
3
默认是Ctrl+Alt+L
要是快捷键冲突可以从下面方式找到更改 File --->Settings --->Keymap --->Main menu --->code --->Reformat Code |
|
lucatSep 28, 2016
5
Ubuntu 下 ctrl+alt+ l 会和锁屏的冲突
用 ctrl + alt + i 即可 |