扫码关注官方订阅号
欢迎选择我的课程,让我们一起见证您的进步~~
你说的是这个? Code -> Reformat Code:
option+command+L。
option
command
L
...Mac下大部分Window的Ctrl都可以用小菊花代替。
Mac
Window
Ctrl
小菊花
windows 是 Ctrl + Alt + LMac 是 小菊花 + Alt + L
windows
Ctrl + Alt + L
小菊花 + Alt + L
option+command+L,这个直接看code菜单里面的Reformat Code就知道了
我经常用这个功能:windows明明是 ctrl + alt + Lmac是 command + alt + L为什么总有人说错误答案,另外,进入菜单可以看到快捷键方式
cmd option l建议配合.editorconfig
root = true
[*]charset = utf-8end_of_line = lfindent_size = 2indent_style = spaceinsert_final_newline = truemax_line_length = 80trim_trailing_whitespace = truespaces_around_brackets = bothspaces_around_operators = true
[*.md]max_line_length = 0trim_trailing_whitespace = falseinsert_final_newline = falsetrim_trailing_whitespace = false
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
你说的是这个? Code -> Reformat Code:

option+command+L。...
Mac下大部分Window的Ctrl都可以用小菊花代替。windows是Ctrl + Alt + LMac是小菊花 + Alt + Loption+command+L,这个直接看code菜单里面的Reformat Code就知道了
我经常用这个功能:
windows明明是 ctrl + alt + L
mac是 command + alt + L
为什么总有人说错误答案,另外,进入菜单可以看到快捷键方式
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