欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

sublime text3插件

程序员文章站 2022-06-20 10:57:49
...
  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 }
    		]
    	}
    ]

     

  8.  

    自定义设置 preferences-->setting-user:
    {
    	"ignored_packages":
    	[
    		"Vintage",
    	],
    	"font_size": 12,
    	"tab_size": 4,
    	"translate_tabs_to_spaces": true,
    	"word-wrap": false,
        "preview_on_click": false
    }
    

转载于:https://my.oschina.net/muyexia/blog/387882