1. 程式人生 > >PHPStorm常用技巧

PHPStorm常用技巧

1、利用phpstorm+xdebug來除錯程式碼:

https://confluence.jetbrains.com/display/PhpStorm/Zero-configuration+Web+Application+Debugging+with+Xdebug+and+PhpStorm

2、替換文字:

快捷鍵: CTRL+R 

可正則替換,可大小寫轉換

https://www.jetbrains.com/help/phpstorm/2016.3/finding-and-replacing-text-in-file-using-regular-expressions.html

3、新增行:SHIFT+ENTER

刪除行: CTRL+Y

https://www.jetbrains.com/help/phpstorm/2016.3/adding-deleting-and-moving-code-elements.html

4、遞迴摺疊程式碼:

https://www.jetbrains.com/help/phpstorm/2016.3/code-folding.html#folding_basics

5、格式化程式碼:

https://www.jetbrains.com/help/phpstorm/2016.3/reformatting-source-code.html

6、多行合成一行: CTRL+SHIFT+J

https://www.jetbrains.com/help/phpstorm/2016.3/joining-lines-and-literals.html

7、展開類檔案的結構體:ATL+7

https://www.jetbrains.com/help/phpstorm/2016.3/manipulating-the-tool-windows.html

8、設定工具欄顯示的內容:

https://www.jetbrains.com/help/phpstorm/2016.3/viewing-modes.html

9、搜尋類 : CTRL+N

https://www.jetbrains.com/help/phpstorm/2016.3/navigating-to-class-file-or-symbol-by-name.html

10、檢視檔案修改歷史:

https://www.jetbrains.com/help/phpstorm/2016.3/viewing-local-history-of-source-code.html

11、註釋

CTRL+/

12、全域性搜尋

雙擊 shift