Mac PHPStorm快捷鍵總結

轉載地址:https://www.cnblogs.com/onephp/p/6437394.html

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)

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章