0
点赞
收藏
分享

微信扫一扫

vscode 前端常用插件推荐

静悠 2022-05-04 阅读 62

[配置教程 戳这里](()

4.Bracket Pair Colorizer (必备)

给括号加上不同的颜色,便于区分不同的区块,使用者可以定义不同括号类型和不同颜色

5.Debugger for Chrome (推荐)

映射vscode上的断点到chrome上,方便调试

[调试方法戳这](()

6.ESLint (推荐)

js语法纠错,可以自定义配置,不过配置较为复杂,建议使用网上一些广泛使用的eslint配置,日后我也会专门针对eslint配置写一篇文章。

7.GitLens(使用git的必备)

方便查看git日志,git重度使用者必备

使用[教程](()

8.HTML CSS Support (必备)

智能提示CSS类名以及id

9.HTML Snippets (必备)

智能提示HTML标签,以及标签含义

10.JavaScript(ES6) code snippets (必备)

ES6语法智能提示,以及快速输入,不仅仅支持.js,还支持.ts,.jsx,.tsx,.html,.vue,省去了配置其支持各种包含js代码文件的时间

11.jQuery Code Snippets (推荐)

jQuery代码智能提示

12.Markdown Preview Enhanced (推荐)

实时预览markdown,markdown使用者必备

13.markdownlint (推荐)

markdown语法纠错

14.Material Icon Theme (推荐)

vscode图标主题,支持更换不同色系的图标,值得点出的是,该插件更新极其频繁,基本和vscode更新频率保持一致

极简主义是不需要的

另一套 目录树图标主题 vscode-icons

使用方法,配置如下json

15.open in browser (必备)

vscode不像IDE一样能够直接在浏览器中打开html,而该插件支持快捷键与鼠标右键快速在浏览器中打开html文件,支持自定义打开指定的浏览器,包括:Firefox,Chrome,Opera,IE以及Safari

设置默认浏览器

16.Path Intellisense (必备)

自动提示文件路径,支持各种快速引入文件

![](https://imgconvert.csdnimg.cn/aHR0cHM 《大厂前端面试题解析+Web核心总结学习笔记+企业项目实战源码+最新高清讲解视频》无偿开源 徽信搜索公众号【编程进阶路】 6Ly9pbWFnZXMyMDE4LmNuYmxvZ3MuY29tL2Jsb2cvMTMwOTg5Ny8yMDE4MDMvMTMwOTg5Ny0yMDE4MDMxODIzMzUzNjIwOS03OTQzNTgzMTkucG5n?x-oss-process=image/format,png)

17.React/Redux/react-router Snippets (推荐)(react必备)

React/Redux/react-router语法智能提示

补充两个

1) React-Native/React/Redux snippets for es6/es7

2) react-beautify

18.Vetur (推荐)(vue必备)

Vue多功能集成插件,包括:语法高亮,智能提示,emmet,错误提示,格式化,自动补全,debugger。vscode官方钦定Vue插件,Vue开发者必备。

补充 两个:

1) VueHelper

2) Vue TypeScript Snippets

3) Vue 2 Snippets

19.Dracula Official (推荐)

很好看的一款主题风格

这样的

20.filesize (了解)

查看文件大小

20.HTMLHint(了解)

静态检查规则 [具体规则戳这](()

21. Class autocomplete for HTML (推荐)

智能提示HTML class =“”属性(必备)

22. IntelliSense for CSS class names (推荐)

智能提示 css 的 class 名

23.  Npm Intellisense(node必备)

require 时的包提示

{ // VScode主题配置

“editor.tabSize”: 2,

“editor.lineHeight”: 24,

“editor.renderLineHighlight”: “none”,

“editor.renderWhitespace”: “none”,

“editor.fontFamily”: “Consolas”,

“editor.fontSize”: 15,

“editor.cursorBlinking”: “smooth”,

“editor.multiCursorModifier”: “ctrlCmd”,

“editor.formatOnSave”: false,

“editor.snippetSuggestions”: “top”,

“editor.wordWrapColumn”: 200,

“editor.wordWrap”: “off”,

“editor.quickSuggestions”: {

“other”: true,

“comments”: true,

“strings”: false

},

// 保存时自动格式化

“editor.formatOnPaste”: false,

“files.trimTrailingWhitespace”: true,

“terminal.integrated.shell.windows”: “C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe”,

“typescript.suggest.autoImports”: true,

“javascript.updateImportsOnFileMove.enabled”: “always”,

“javascript.suggest.autoImports”: true,

“workbench.iconTheme”: “eq-material-theme-icons”,

“workbench.startupEditor”: “newUntitledFile”,

“workbench.colorTheme”: “Material Theme High Contrast”,

“workbench.colorCustomizations”: {

// 设置guide线高亮颜色

“editorIndentGuide.activeBackground”: “#ff0000”

},

// 启用/禁用导航路径

“breadcrumbs.enabled”: true,

// git是否启用自动拉取

“git.autofetch”: true,

“minapp-vscode.disableAutoConfig”: true,

“view-in-browser.customBrowser”: “chrome”,

// VScode 文件搜索区域配置

“search.exclude”: {

“**/dist”: true,

“**/build”: true,

“**/elehukouben”: true,

“**/.git”: true,

“**/.gitignore”: true,

“**/.svn”: true,

“**/.DS_Store”: true,

“**/.idea”: true,

“**/.vscode”: false,

“**/yarn.lock”: true,

“**/tmp”: true

},

// 配置文件关联

“files.associations”: {

“*.vue”: “html”,

“*.wxss”: “css”,

“*.cjson”: “jsonc”,

“*.wxs”: “javascript”

举报

相关推荐

0 条评论