phpstorm10php
License Server http://idea.qinxi1992.cn/ 搭建本身的IntelliJ IDEA受權服務器 http://blog.lanyus.com/archives/174.html
phpstorm2017.1html
License Server http://idea.goxz.gq http://v2mc.net:1017 http://idea.imsxm.com http://idea.ibdyr.com
windows快捷鍵git
ctrl+shift+n查找文件 ctrl+shift+f 在一個目錄裏查找一段代碼(ctrl+f的升級版) ctr+shift+r 在一個目錄裏查找一段代碼並替換(ctrl+r的升級版) CTRL+ALT ←/→ 返回上次編輯的位置 ALT+ ←/→ 切換代碼視圖,標籤切換 ALT+ ↑/↓ 在方法間快速移動定位 ctrl+j插入活動代碼提示 ctrl+alt+t當前位置插入環繞代碼 alt+insert生成代碼菜單 ctrl+q查看代碼註釋 ctrl+d複製當前行 ctrl+y刪除當前行 shift+F6重命名 ctrl+shift+u字母大小寫轉換 ctrl+f查找 ctrl+r替換 F4查看源碼 ctrl+shift+i查看變量或方法定義源 ctrl+g跳轉行 ctrl+alt+F12跳轉至當前文件在磁盤上的位置 ctrl+alt+l從新格式化代碼 ctrl+shift+downstatement向下移動 ctrl+shift+upstatement向上移動 alt+shift+downline向下移動 alt+shift+upline向上移動 ctrl+/行註釋 ctrl+shift+/塊註釋 ctrl+shift+n打開工程中的文件 ctrl+b跳到變量申明處 ctrl+[]匹配 {}[] ctrl+shift+]/[選中塊代碼 ctrl+x剪切行 ctrl+shift+v複製多個文本 alt+left/right標籤切換 ctrl+p顯示默認參數 ctrl+F12在當前類文件裏快速查找方法 alt+1文件菜單展現/關閉 alt+7方法地圖展現/關閉
mac快捷鍵github
⌘——Command ⌃ ——Control ⌥——Option/Alt ⇧——Shift ⇪——Caps Lock fn——功能鍵就是fn 編輯 Command+alt+T 用 (if..else, try..catch, for, etc.)包住 Command+/ 註釋/取消註釋的行註釋 Command+alt+/ 註釋/取消註釋與塊註釋 alt+↑ 向上選取代碼塊 alt+↓ 向下選取代碼塊 Command+alt+L 格式化代碼 tab,shift+tab 調整縮進 Control+alt+I 快速調整縮進 Command+C 複製 Command+X 剪切 Command+V 粘貼 Command+shift+V 從剪貼板裏選擇粘貼 Command+D 複製代碼副本 Command+delete 刪除當前行 Control+Shift+J 清除縮進變成單行 shift+回車 快速換行 Command+回車 換行光標還在原先位置 Command+shift+U 大小寫轉換 Command+shift+[,Command+shift+] 文件選項卡快速切換 Command+加號,Command+減號 收縮代碼塊 Command+shift+加號,Command+shift+減號 收縮整個文檔的代碼塊 Command+W 關閉當前文件選項卡 alt+單擊 光標在多處定位 Control+shift+J 把下面行的縮進收上來 shift + F6 高級修改,可快速修改光標所在的標籤、變量、函數等 alt+/ 代碼補全 調試 Control+alt+R 運行項目 Command+Control+R 運行Debug Command+F8 添加斷點 Command+shift+F8 打開斷點列表 導航 Command+O 跳轉到某個類 Command+shift+O 跳轉到某個文件 Command+alt+O 跳轉到某個符號 Control+←,Control+→ 轉到上/下一個編輯器選項卡 F12 打開以前打開的工具窗口(TODO、終端等) Command+L 跳轉行 Command+E 彈出最近文件 Command+alt+←,Command+alt+→ 向前向後導航到代碼塊交接處(通常是空行處) Command+shift+delete 導航到上一個編輯位置的位置 Command+B 跳轉到變量聲明處 Control+J 獲取變量相關信息(類型、註釋等,註釋是拿上一行的註釋) Command+Y 小浮窗顯示變量聲明時的行 Command+[,Command+] 光標如今的位置和以前的位置切換 Command+F12 文件結構彈出式菜單 alt+H 類的層次結構 F2,shift+F2 切換到上\下一個突出錯誤的位置 Command+↑ 跳轉到導航欄 F3 添加書籤 alt+F3 添加帶助記的書籤 alt+1,alt+2… 切換到相應助記的書籤位置 Command+F3 打開書籤列表 VCS/本地歷史記錄 control+V 打開VST小浮窗 Command+K 提交項目 Command+T 更新項目 alt+shift+C 打開最近修改列表 搜索和替換 Command+F 搜索 Command+R 替換 Command+G 查找下一個 Command+shift+G 查找下一個 Command+shift+F 按路徑搜索 Command+shift+R 按路徑替換 選中文字的搜索 Command+F7 向聲明的地方搜索並選中 Command+shift+F7 打開搜索框進行搜索 Command+alt+F7 打開小浮窗顯示搜索列表 對項目文件的操做(重構) F5 複製文件到某個目錄 F6 移動文件到某個目錄 Command+delete 安全刪除 shift+F6 重命名 全局的 雙擊shift 彈出小浮窗搜索全部 Command+~切換項目 Command+shift+~ 反向切換項目 (在打開的不一樣項目中切換) Command+shift+A 整個工程的查找操做 Command+1,Command+2… 打開各類工具窗口 alt+shift+F 把文件添加到收藏夾 alt+shift+I 打開項目描述 alt+~ 快速切換當前計劃 Command+, 設置編輯器 Control+Tab 選項卡和工具窗口之間進行切換 alert+回車 顯示npm版本升級列表
github搜color-schemes下載主題 先去http://daylerees.github.io預覽,下載到.WebIde80配置文件中的font http://www.ideacolorthemes.org/themes/ 主題: https://github.com/daylerees/colour-schemes 主題2: http://www.ideacolorthemes.org/themes/ FiraCode字體:https://github.com/tonsky/FiraCode 解決sidebar與編輯器主題不一致 plugins下載插件 color ide
power model II 字體效果 codeglance 代碼地圖 markdown support markdown navigator
Live Templateweb
1. ctrl+shift+A live template 2. new group 3. new template 4. 設置 Abbreviation: ftext Form Description:Text Input Template text: <!--- $VALUE$ Field ---> <div class="form-group"> {!! Form::label('$NAME$', '$VALUE$:') !!} {!! Form::text('$NAME$', null, ['class' => 'form-control']) !!} </div> 修改Define->HTML edit variables->VALUE->capitalize(NAME)
xdebug遠程調試npm
1、監聽調試(須要瀏覽器插件,火狐->The easiest Xdebug,谷歌->xdebug helper)windows
1 xdebug配置 xdebug.remote_enable = On xdebug.remote_handler = dbgp xdebug.remote_host= 192.168.10.1 //客戶端的ip(IDE的機器的ip,不是web server) xdebug.remote_port = 9000 xdebug.idekey = PHPSTORM 2.PHPSTORM配置 2.1 file->setings->php|Debug->xdebug->Debug port:9900(xdebug吐出的debug信息經過本機的什麼端口傳輸) 2.2 file->setings->php|Servers->host: web服務器的域名或ip,端口,use path mapping,項目目錄對應服務器上目錄 2.3 開啓監聽(話筒按鈕或者Run->Start Listening for PHP Debug Connections) 3.瀏覽器設置 The easiest Xdebug->IDE key for remote debugging->PHPSTORM
2、主動調試api
1 xdebug配置 zend_extension = xdebug.so xdebug.default_enable = On xdebug.collect_params = On xdebug.remote_connect_back = On //開啓將忽略xdebug.remote_host ;xdebug.remote_host = 192.168.10.1 //客戶端的ip(IDE的機器的ip,不是web server) xdebug.remote_port = 9900 //客戶端的端口(即IDE的機器的端口,不是web server) xdebug.remote_enable = On xdebug.remote_handler = dbgp xdebug.remote_log = "/var/log/xdebug/xdebug.log" xdebug.remote_req = req xdebug.auto_trace = Off xdebug.remote_autostart = On xdebug.show_exception_trace = 0 xdebug.collect_vars = On xdebug.collect_return = On xdebug.collect_params = On xdebug.var_display_max_depth = 15 xdebug.show_local_vars = 1 xdebug.dump_undefined = 1 xdebug.profiler_enable = 1 xdebug.profiler_output_dir = "/var/log/xdebug" 2 PHPSTORM配置 2.1 file->setings->php|Debug->xdebug->Debug port:9900(xdebug吐出的debug信息經過本機的什麼端口傳輸) 2.2 file->setings->php|Servers->host: web服務器的域名或ip,端口,use path mapping,項目目錄對應服務器上目錄