java - mac下的idea如何格式化代码?
天蓬老师
天蓬老师 2017-04-18 10:12:53
0
6
840
天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(6)
洪涛

Is this what you are talking about? Code -> Reformat Code:

Peter_Zhu

option+command+L

伊谢尔伦

...Mac下大部分WindowCtrl都可以用小菊花 instead.

windowsCtrl + Alt + L
Mac小菊花 + Alt + L

黄舟

option+command+L, just look at the Reformat Code in the code menu

迷茫

I often use this function:
Windows is obviously ctrl + alt + L
Mac is command + alt + L
Why do some people always say the wrong answer? In addition, you can see the shortcut keys when entering the menu

迷茫

cmd option l
建议配合.editorconfig

http://editorconfig.org

root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
max_line_length = 80
trim_trailing_whitespace = true
spaces_around_brackets = both
spaces_around_operators = true

[*.md]
max_line_length = 0
trim_trailing_whitespace = false
insert_final_newline = false
trim_trailing_whitespace = false

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!