phpstorm開發有時候太占內存,會發生卡頓。雖然還是更喜歡用這個IDE哈哈。
一個也很強大的編輯器sublime text3,作為偶爾的替代也很給力。這個內存占用會小不少。
官網下載sublime3,由於平時習慣了eclipse,phpstorm的快捷鍵。我就稍微改了改sublime的幾個快捷鍵。
在key bindings中,直接編輯:
[ { "keys": ["ctrl+enter"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Add Line.sublime-macro"} }, { "keys": ["ctrl+shift+enter"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Add Line Before.sublime-macro"} }, { "keys": ["ctrl+alt+down"], "command": "duplicate_line" }, { "keys": ["alt+up"], "command": "swap_line_up" }, { "keys": ["alt+down"], "command": "swap_line_down" }, { "keys": ["ctrl+d"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} }, { "keys": ["ctrl+a"], "command": "select_all" }, { "keys": ["ctrl+f"], "command": "show_panel", "args": {"panel": "find", "reverse": false} }, { "keys": ["ctrl+x"], "command": "cut" }, { "keys": ["ctrl+c"], "command": "copy" }, { "keys": ["ctrl+v"], "command": "paste" }, { "keys": ["ctrl+s"], "command": "save" }, { "keys": ["ctrl+z"], "command": "undo" }, { "keys": ["ctrl+y"], "command": "redo_or_repeat" }, { "keys": ["ctrl+f"], "command": "show_panel", "args": {"panel": "replace", "reverse": false} }, { "keys": ["ctrl+shift+x"], "command": "upper_case" }, { "keys": ["ctrl+shift+y"], "command": "lower_case" }, ]
sublime強大的一面在於支持擴展,可以安裝各種插件。
先安裝package control。手動安裝方法詳見:https://packagecontrol.io/installation
自己又安裝了個ctags插件,可以找到調用方法。
開發時,在sublime打開一個項目的目錄樹。開發吧...
截個圖示例下: