pycharm有没有对齐HTML代码的快捷键

2013-09-05 15:38:21 +08:00
 1up
类似VS 中的ctrl +f+k
22087 次点击
所在节点    Python
5 条回复
willerce
2013-09-05 15:57:26 +08:00
用格式化,Menu -> Code -> Reformat Code (ctrl+alt+l)

缩进的格式,换行,对齐方式可以在 Setting (ctrl+alt+s)(command+,) 中的 code style 中调整
jianghu52
2013-09-08 11:54:17 +08:00
我比较喜欢sublime text 里面的对齐,不过用的插件
daweibao
2014-07-24 19:21:44 +08:00
默认是Ctrl+Alt+L
要是快捷键冲突可以从下面方式找到更改
File --->Settings --->Keymap --->Main menu --->code --->Reformat Code
1up
2014-07-25 00:21:38 +08:00
lucat
2016-09-28 15:37:00 +08:00
Ubuntu 下 ctrl+alt+ l 会和锁屏的冲突

用 ctrl + alt + i 即可

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/81422

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX