mac下的idea如何格式化代码?
mac下的idea如何格式化代码?mac下的idea如何格式化代码?
我经常用这个功能:
windows明明是 ctrl + alt + L
mac是 command + alt + L
为什么总有人说错误答案,另外,进入菜单可以看到快捷键方式
cmd option l
建议配合.editorconfig
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
8 回答6.6k 阅读
4 回答711 阅读✓ 已解决
2 回答3.4k 阅读
3 回答1.9k 阅读✓ 已解决
1 回答2.2k 阅读✓ 已解决
1 回答2.1k 阅读✓ 已解决
1 回答974 阅读✓ 已解决
你说的是这个? Code -> Reformat Code:
