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 年 9 月 5 日 · 22531 次点击
    这是一个创建于 4513 天前的主题,其中的信息可能已经有所发展或是发生改变。
    类似VS 中的ctrl +f+k
    5 条回复    2016-09-28 15:37:00 +08:00
    willerce
        1
    willerce  
       2013 年 9 月 5 日   ❤️ 1
    用格式化,Menu -> Code -> Reformat Code (ctrl+alt+l)

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

    用 ctrl + alt + i 即可
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   1009 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 22:40 · PVG 06:40 · LAX 14:40 · JFK 17:40
    ♥ Do have faith in what you're doing.