vue sublime 工欲善其事,必先利其器

vue 代码高亮插件:

Vue Syntax Hightlight

 

vue代码自动格式化:

HTML/CSS/JS Prettify 这个插件就行, 安装后 tools->HTML/CSS/JS Prettify->set prettify preference

 在"allowed_file_extensions": ["htm", "html", "xhtml", "shtml", "xml", "svg","vue"] 加上vue就好了

(HTML/CSS/JS Prettify插件要配置正确的node_path)

保持风格统一:

"indent_size": 2,

"brace_style": "collapse-preserve-inline",

 

 

保存自动格式化:

set the format_on_save setting to true in HTMLPrettify.sublime-settings

 

 

---------------------------17.9.19更新

Preference.sublime-settings:

{
  "auto_match_enabled": false,
  "color_scheme": "Packages/User/SublimeLinter/Monokai (SL).tmTheme",
  "font_size": 11,
  "highlight_line": false,
  "ignored_packages": [
    "Vintage"
  ],
  "match_brackets_angle": true,
  "update_check": false,
  "word_wrap": true,
  "folder_exclude_patterns": ["node_modules", "build", ".css"], //文件夹
  "file_exclude_patterns": ["*.min.css", "*.svg", "*.lock"] //文件
}

 

posted @ 2017-04-27 16:38  龙鸿轩  阅读(226)  评论(0编辑  收藏  举报