sublime text3插件

  1. 安装package control
  2. Ctrl+~调出console,输入
    import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); open(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20')).read())
  3. 重启sublime
  4. Ctrl+shift+p,输入install package选择安装的插件
  5. 插件介绍

  1. convert to utf-8
  2. emmet 原来叫zen coding
  3. jquery
  4. autoPrefixer  css3的自动补齐
  5. jsFormat  js的格式化
  6. tag
  7. 自定义快捷键:preferences-->keybinding-user:
    [
    	{ "keys": ["ctrl+d"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} },
    	{ "keys": ["alt+up"], "command": "swap_line_up" },
    	{ "keys": ["alt+down"], "command": "swap_line_down" },
    	{ "keys": ["ctrl+alt+down"], "command": "duplicate_line" },
    	{ "keys": ["shift+ctrl+y"], "command": "lower_case" },
    	{ "keys": ["shift+ctrl+x"], "command": "upper_case" },
    	// 自动提示、补全
    	{ "keys": ["alt+/"], "command":"auto_complete" },
    	{ "keys": ["alt+/"], "command":"replace_completion_with_auto_complete", "context":
    		[ { "key": "last_command", "operator":"equal", "operand": "insert_best_completion" },
    	  		{ "key": "auto_complete_visible", "operator":"equal", "operand": false },
    	 		{ "key": "setting.tab_completion", "operator":"equal", "operand": true }
    		]
    	}
    ]




你可能感兴趣的:(sublime,插件,Text3)