2016-05-24 55 views
1

我正在使用PhpStorm重構舊的Web項目。代碼風格有點不尋常,我不太喜歡它。PhpStorm:刪除不必要的空格

例如:

case 'test'   : 

,而不是

case 'test': 

不知道如何刪除與PhpStorm這些不必要的空格?我試圖擺脫它們使用代碼樣式設置,但我還沒有找到一個解決方案。

+0

同樣的建議爲你的另一個問題是:http://stackoverflow.com/questions/37412746/phpstorm-add-blank-lines-around-if-else – LazyOne

+0

關於使用正則表達式如何用查找替換? – Alexiy

回答

0

您可以在其文檔中查看PhpStorm快捷鍵。
嘗試:ctrl + alt + L

+0

不,'reformat code'選項不起作用:-( – MyFault