sublime text3作为php开发IDE

  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打开一个项目的目录树。开发吧...

  截个图示例下:

  

  

  

posted @ 2016-11-27 16:52  根号五  阅读(2642)  评论(0编辑  收藏  举报