引言

为加快工作效率特将vscode常用配置插件整理出来

配置md预览

vscode配置文件github地址

打开配置文件:文件=>首选项=>设置
增加以下内容:

在线地址

  1. "markdown.styles": [
  2. "https://github.com/raycon/vscode-markdown-css/blob/master/markdown-pdf.css"
  3. ]

本地vscodemd.css

  1. "markdown.styles": [
  2. "file:///C:/Users/Administrator/Desktop/blog/_posts/other/工具/vscodemd.css"
  3. ],

eslint配置

原文

配置

文件 > 首选项 > 设置,在右侧用户设置中修改 ESLint 的相关配置并保存:

  1. "eslint.options": {
  2. "configFile": "/Users/shawzhou/Desktop/meili/mgj-pay-meilijie/.eslintrc.js",
  3. "plugins": ["html"]
  4. },
  5. "eslint.validate": [
  6. "javascript",
  7. "javascriptreact",
  8. "html",
  9. "vue"
  10. ]

检测项目选装npm包

npm install eslint babel-eslint --save-dev

自定义代码片段

起步

Code=>首选项=>用户代码片段