VScode configuration and plug-in recommendation

basic configuration

 {
    
    
  //******************系统默认设置******************
  //颜色主题
  "workbench.colorTheme": "One Dark Pro",
  //文件图标
  "workbench.iconTheme": "material-icon-theme",
  //字号
  "editor.fontSize": 20,
  // 重新设定tab为两个空格
  "editor.tabSize": 2,
  //保存自动格式化
  "editor.formatOnSave": true,
  //配置文件关联语言
  "files.associations": {
    
    
    "*.php": "html",
    "*.html": "php",
    "*.vue": "html"
  },
  // ******************插件扩展设置******************
  //liveserver默认浏览器:谷歌
  "liveServer.settings.CustomBrowser": "chrome",
  //prettier格式化代码
  "[html]": {
    
    
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[css]": {
    
    
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[less]": {
    
    
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[javascript]": {
    
    
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[jsonc]": {
    
    
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  //PHP可执行的设置
  "php.validate.executablePath": "D:/phpstudy/Extensions/php/php7.3.4nts/php.exe",
  //自动补全路径
  "path-intellisense.showHiddenFiles": true,
  // PHP Intelephense格式化php代码
  "[php]": {
    
    
    "editor.defaultFormatter": "bmewburn.vscode-intelephense-client"
  }
  // ******************保存setting.json******************
}

Plug-in recommendation

  • Live Server
    real-time web server

  • Color Highlight
    Highlight Color

  • Bracket Pair Colorizer 2
    color brackets

  • Path Intellisense
    automatically completes the path

  • HTML to CSS autocompletion
    out-of-line prompt class name id

  • css-class-intellisense
    inline prompt class name id

  • I will
    analyze the meaning of the code in English

  • Auto Rename Tag
    Synchronously modify tags</>

  • Easy LESS
    quickly compile css

  • ESLlint

  • Image preview
    preview image
    PHP IntelliSense
    PHP code hints

  • One Dark Pro
    theme color

  • Material Icon Theme
    file icon theme

  • indent-rainbow
    space display

  • Prettier - Code formatter
    formatted

Guess you like

Origin blog.csdn.net/bealei/article/details/115053914