[英]Auto indentation in PhpStorm like in WebStorm by default
使用具有默认配置的WebStorm,当我在带有一些空格的空行中按delete
时,整行总是被删除。 此外,如果我关闭函数的括号,则内部代码将自动缩进。
我试图配置具有这些功能的PhpStorm(7.1)( Settings -> Code Style -> General
和Settings -> Code Style -> PHP
)。 当我看到Tabs and Indents -> Smart Tabs
,我以为我找到了它,但选择这些选项似乎没有任何改变。
我怎样才能在PhpStorm中获得上述行为?
编辑:
正如@lena建议的那样,我查看了Editor -> General -> Smart keys
,但Reformat block on typing '}'
选项时没有任何Reformat block on typing '}'
其他内容已启用:
在Settings | Editor | General | Smart keys
Reformat block on typing '}'
中Reformat block on typing '}'
请确保您有Reformat block on typing '}'
Settings | Editor | General | Smart keys
Settings | Editor | General | Smart keys
。 另外,请尝试使用'Backspace | Unindent
播放 'Backspace | Unindent
'在Settings | Editor | General | Smart keys
Settings | Editor | General | Smart keys
Settings | Editor | General | Smart keys
:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.