vscode常用插件

  1. Bookmarks
  2. Chinese (Simplified) Language Pack for Visual Studio Code
  3. Debugger for chrome
  4. ESLint
  5. Git Graph
  6. GitLens
  7. Live Server
  8. Markdown All in One
  9. nginx.conf
  10. Prettier
  11. RegExp Preview and Editor
  12. shell-format
  13. SVG Viewer
  14. Vetur
  15. vscode-flow-ide
  16. vscode-icons
  17. Vue 3 Snippets
  18. XML Tools
  19. Setting Sync

 

 

用户区设置

{
  "workbench.colorTheme": "Default Light+",
  "editor.tabSize": 2,
  "editor.wordWrap": "on",
  "terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
  "explorer.confirmDelete": false,
  "vsicons.dontShowNewVersionMessage": true,
  "gitlens.gitCommands.closeOnFocusOut": true,
  "explorer.confirmDragAndDrop": false,
  "typescript.validate.enable": false,
  "javascript.validate.enable": false,
  "[javascript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[jsonc]": {
    "editor.defaultFormatter": "vscode.json-language-features"
  },
  "editor.renderControlCharacters": true,
  "git.ignoreWindowsGit27Warning": true,
  "window.zoomLevel": 0,
  "[xml]": {
    "editor.defaultFormatter": "DotJoshJohnson.xml"
  },
  "[html]": {
    "editor.defaultFormatter": "vscode.html-language-features"
  },
  "emmet.excludeLanguages": [
    "markdown"
  ],
  "emmet.includeLanguages": {
    "javascript": "javascriptreact"
  },
  "gitlens.views.repositories.files.layout": "list",
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  },
  "files.autoSave": "onFocusChange",
  "[vue]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "editor.formatOnSave": true,
  "eslint.alwaysShowStatus": true,
  "eslint.codeAction.showDocumentation": {
    "enable": true
  },
  "files.eol": "\n"
}

 

 

工作区设置:

{
  "editor.detectIndentation": false,
  "editor.formatOnSave": true,
  "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
  "vetur.format.defaultFormatter.js": "vscode-typescript",
  "vetur.format.defaultFormatterOptions": {
    "js-beautify-html": {
      "wrap_attributes": "force-aligned"
    }
  },
  "emmet.includeLanguages": {
    "javascript": "javascriptreact",
    "wxml": "html"
  },
  "workbench.startupEditor": "newUntitledFile",
  "sync.gist": "72cd1db3610384e4d13d0ceab7b470b2",
  "explorer.confirmDelete": false,
  "sync.forceUpload": true,
  "vsicons.dontShowNewVersionMessage": true,
  "workbench.iconTheme": "material-icon-theme",
  "editor.suggestSelection": "first",
  "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
  "explorer.confirmDragAndDrop": false,
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true,
    "source.fixAll.stylelint": true
  },
  "[markdown]": {
    "editor.defaultFormatter": "yzhang.markdown-all-in-one"
  },
  "files.associations": {
    "*.cjson": "jsonc",
    "*.wxss": "css",
    "*.wxs": "javascript"
  },
  "minapp-vscode.disableAutoConfig": true,
  "winopacity.opacity": 250,
  "files.autoSave": "onFocusChange",
  "[vue]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "git.autofetch": true,
  "prettier.endOfLine": "auto",
  "files.eol": "\n",
  "files.encoding": "utf8",
  "editor.fontSize": 14,
  "eslint.trace.server": null
}

 

### VSCode 常用插件推荐 以下是针对开发人员常用的几类功能所整理的 VSCode 插件推荐: #### 浏览器预览工具 对于前端开发者来说,在浏览器中实时查看 HTML 文件的效果是非常重要的。可以通过安装 **Live Server** 或者类似的插件来实现这一需求。这类插件允许通过快捷键或者鼠标右键操作快速在默认或自定义浏览器中打开 HTML 文件,支持多种主流浏览器,例如 Firefox、Chrome、Opera、IE 和 Safari [^1]。 #### 书签管理工具 为了提高代码编辑效率,可以使用 Bookmarks 插件标记重要位置并快速导航至这些标记处。具体配置方法如下:按下 `F1` 键调出命令面板,输入 `[打开键盘快捷方式]` 进入设置界面;随后可调整添加/删除标签以及跳转至上一/下一标签的相关快捷键组合。例如,将 PgUp 设置为跳转到上一个标签,PgDn 跳转到下一个标签,Ctrl+T 添加或移除标签 [^2]。 #### 中文化支持 如果希望让 VSCode 的菜单栏显示中文语言,则需执行以下步骤完成切换:按住 `Ctrl+Shift+P` 打开指令输入框,接着输入 `Configure Display Language` 并回车确认;之后从下拉列表里挑选目标语言包(如 zh-cn),最后按照提示点击重启按钮即可生效 [^3]。 此外还有其他一些非常实用但未提及于上述引用中的扩展程序也值得考虑加入日常工作中: - **Bracket Pair Colorizer**: 自动给匹配的大括号着色以便更容易识别嵌套结构。 - **ESLint / Prettier - Code formatter**: 配合 JavaScript (JSX), TypeScript, Vue.js 等项目进行静态分析和自动格式化处理。 - **GitLens — Git supercharged**: 提升版本控制体验,提供更深入的历史记录视图等功能。 ```javascript // 示例 ESLint 配置文件 .eslintrc.json 内容片段展示如何启用规则 { "rules": { "indent": ["error", 4], "quotes": ["error", "double"], "semi": ["error", "always"] } } ``` 以上列举了一些常见的 Visual Studio Code 插件及其用途介绍,实际应用过程中可根据个人偏好和技术栈特点灵活选用适合自己的辅助工具集。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值