sublime text3 插件

安装'Package Control:

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())

install package打不开就增加/替换channels:

    "channels":
    [
        "http://ali.adtk.cn/channel_v3.json"
    ],
sublime text3 插件_第1张图片
WJLWWPGW2CJCFTUH_TY31GC.png

emmet
中文:ChineseLocalizations
路径提示:autofilename

CodeFormatter:支持多种语言格式化代码,快捷键ctrl+alt+f

js格式整理:jsformat
css格式整理:css format

服务环境:sublimeserver

错误提示:sublimelinter及相关插件

//每个项目下新建‘.eslintrc.json’
{
    "env": {
        "browser": true,
        "es6": true
            // "node": true
    },
    "parserOptions": {
        "sourceType": "module"
    },
    "rules": {
        "no-cond-assign": [2, "always"], //if, while等条件中不允许使用“=”
        "no-constant-condition": 2,
        "no-debugger": 2, // 程序中不能出现debugger
        "no-dupe-args": 2, // 函数的参数名称不能重复
        "no-dupe-keys": 2, // 对象的属性名称不能重复
        "no-duplicate-case": 2, // switch的case不能重复
        "no-func-assign": 2,
        "no-obj-calls": 2,
        "no-regex-spaces": 2,
        "no-sparse-arrays": 2,
        "no-unexpected-multiline": 2,
        "no-unreachable": 2,
        "use-isnan": 2,
        "valid-typeof": 2,
        "eqeqeq": [2, "always"],
        "no-caller": 2,
        "no-eval": 2,
        "no-redeclare": 2,
        // "no-undef": 2,
        // "no-unused-vars": 1,
        "no-use-before-define": 2,
        "comma-dangle": [1, "never"],
        "no-const-assign": 2,
        "no-dupe-class-members": 2
    }
}


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