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