使用默认配置的WebStorm,当我在带有一些空格的空白行中按delete
时,整行总是被删除。此外,如果我关闭函数的括号,则内部代码将自动缩进。
我尝试使用此类功能(Settings -> Code Style -> General
和Settings -> Code Style -> PHP
)配置PhpStorm(7.1)。当我看到Tabs and Indents -> Smart Tabs
时,我以为我找到了它,但选择这些选项似乎没有任何改变。
我怎样才能在PhpStorm中获得上述行为?
修改
正如@lena建议的那样,我查看Editor -> General -> Smart keys
内部,但不存在任何Reformat block on typing '}'
选项,其他内容已启用:
答案 0 :(得分:1)
请确保Reformat block on typing '}'
中已启用Settings | Editor | General | Smart keys
。另外,请尝试在'Backspace | Unindent
中使用Settings | Editor | General | Smart keys
'进行游戏: