简体   繁体   English

PhpStorm:删除不必要的空格

[英]PhpStorm: Remove unnecessary whitespaces

I'm using PhpStorm to refactor an old web project. 我正在使用PhpStorm来重构旧的Web项目。 The code style is a little bit uncommon and I do not like it very much. 代码风格有点不常见,我不太喜欢它。

For example: 例如:

case 'test'            :

instead of 代替

case 'test':

Any idea how to remove these unnecessary whitespaces with PhpStorm? 知道如何用PhpStorm删除这些不必要的空格吗? I tried to get rid of them using the Code Style settings, but I did not find a solution yet. 我试图使用代码样式设置摆脱它们,但我还没有找到解决方案。

You can take a look at to PhpStorm short-keys in its documentation. 您可以在其文档中查看PhpStorm快捷键。
Try: ctrl + alt + L 尝试: ctrl + alt + L

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM