工具癖程序员

sublime 常用的插件【1903】

2019-03-06  本文已影响51人  蒙奇DJEFF

先打开外网~

  1. 安装了Package Controller:

通过View->Show Console 输入命令安装:

import urllib.request,os,hashlib; h = 'df21e130d211cfc94d9b0905775a7c0f' + '1e3d39e33b79698005270310898eea76'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)

  1. 开始安装
    sublime快捷键: Ctrl +Shift + P ,
    然后输入:Package Control: Install Package,进入。

如果网络正常,可以看到插件列。

  1. 插件
[
    { "keys": ["f10"], "command": "find_use" },
    { "keys": ["f6"], "command": "expand_fqcn" },
    { "keys": ["f12"], "command": "import_namespace" },
    { "keys": ["shift+f6"], "command": "expand_fqcn", "args": {"leading_separator": true} },
    { "keys": ["shift+f12"], "command": "goto_definition_scope" },
    { "keys": ["ctrl+1"], "command": "insert_php_constructor_property" },
    { "keys": ["ctrl+n"], "command": "advanced_new_file_new"},
    { "keys": ["alt+1"], "command": "toggle_side_bar" },
]
  • find_use(F10) , 光标在类名上,引入use
  • expand_fqcn(F6), 光标类名上,与find_use相同意思
  • import_namespace(F12), 当前文件namespace
  • insert_php_constructor_property(ctrl+1) , 引入属性结构__construct()这些。
  • toggle_side_bar(alt+1), 收起展开sublime左侧栏
  • advanced_new_file_new(ctrl+n), 创建文件

刚刚php companion 中find_use失效,不知道什么原因,过一会后,它又可以用了!?

上一篇 下一篇

猜你喜欢

热点阅读