V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
1up
V2EX  ›  Python

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

  •  
  •   1up · 2013-09-05 15:38:21 +08:00 · 22063 次点击
    这是一个创建于 3858 天前的主题,其中的信息可能已经有所发展或是发生改变。
    类似VS 中的ctrl +f+k
    5 条回复    2016-09-28 15:37:00 +08:00
    willerce
        1
    willerce  
       2013-09-05 15:57:26 +08:00   ❤️ 1
    用格式化,Menu -> Code -> Reformat Code (ctrl+alt+l)

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

    用 ctrl + alt + i 即可
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2764 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 12:09 · PVG 20:09 · LAX 05:09 · JFK 08:09
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.