1. 程式人生 > >Mac PHPStorm快捷鍵總結

Mac PHPStorm快捷鍵總結

全域性搜尋(command + shift + F)

顯示類中的方法 (command + 7)

函式追蹤 (command +滑鼠點選)

單行註釋/取消(command + /)

輸入行號跳到某一行(command + l)

列出開啟的檔案(command + e)

刪除當前行(command + x)

複製當前行(command + d)

跳到變數申明處(command + b)

格式化程式碼(command + option + l)

關閉當前視窗 (command + w)

專案重新整理 (command + option + y)

多行註釋(command + option + /)

查詢//@todo標籤(command + 6)

列出左側檔案(command + 1)

切換大小寫(command + shift + u)

複製(command + c)

貼上(command + v)

撤銷(command + z)

顯示行號

IDE settings->Editor->General->Appearance->Show Line Number

換膚

IDE settings->Editor->Colors & Fonts 下拉框選擇即可。

設定字型大小

IDE settings->Editor->Colors & Fonts->font 設定即可。

配置檔案頭預設註釋

IDE settings->Editor->File and Code Templates->PHP File Header。

設定註釋不頂格

IDE settings->Editor->Code Style->PHP 去掉勾 Line comment at first column。

去掉右上角遊覽器

IDE settings->tools ->WebBrowsers  去掉選中即可。

PHPStorm + CodeSniffer

設定

IDE settings->Languages & Frameworks->PHP->CodeSniffer-> 配置即可。

選擇編碼規範

IDE settings->Editor->Inspections->PHP->PHP Code Sniffer validation(打鉤) ->Coding Standard 選擇規範(PEAR)