pig-ui/vue-admin-wonderful-next-docs/docs/vsCode
2020-12-09 08:55:57 +08:00
..
README.md 'admin-20.12.09:配置项目ts、编写文档配置项' 2020-12-09 08:55:57 +08:00

sidebar
auto

visualstudio

官网https://code.visualstudio.com/

一、首选项 - 设置 - settings.json

{
  // 使用单引号替代双引号
  "prettier.singleQuote": true,
  // 这个按用户自身习惯选择
  "vetur.format.defaultFormatter.html": "js-beautify-html",
  "vetur.format.defaultFormatter.js": "vscode-typescript",
  "vetur.format.defaultFormatterOptions": {
    "js-beautify-html": {
      "wrap_line_length": 120,
      "wrap_attributes": "auto",
      "end_with_newline": false
    }
  },
  "workbench.iconTheme": "material-icon-theme",
  "[vue]": {
    "editor.defaultFormatter": "octref.vetur"
  },
  "[scss]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[jsonc]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[javascript]": {
    "editor.defaultFormatter": "vscode.typescript-language-features"
  },
  "[html]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "backgroundCover.imagePath": "c:\\Users\\Administrator\\Desktop\\文档\\2023154.jpg",
  "search.followSymlinks": false,
  "backgroundCover.opacity": 0.5,
  "terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe"
}

二、vsCode 插件

  1. Auto Close Tag
  2. Auto Rename Tag
  3. background-cover
  4. Bracket Pair Colorizer
  5. Chinese (Simplified) Language Pack for Visual Studio Code
  6. Color Info
  7. Community Material Theme
  8. Debugger for Chrome
  9. filesize
  10. GitLens — Git supercharged
  11. HTML Boilerplate
  12. HTML CSS Support
  13. HTML Snippets
  14. HTMLHint
  15. Icon Fonts
  16. JavaScript (ES6) code snippets
  17. markdown-formatter
  18. Material Icon Theme
  19. Material Theme
  20. Material Theme Icons
  21. open in browser
  22. Path Intellisense
  23. Prettier - Code formatter
  24. Vetur

三、图文步骤

1、打开设置

2、安装插件