前端vscode必备插件

一、基础的

1、Auto Rename Tag⭐

image-20230104135509199

修改标签会同步修改

2、Auto Import - ES6, TS, JSX, TSX

image-20230104135612575

自动查找、解析并为所有可用导入提供代码操作和代码完成。适用于 JavaScript (ES6) 和 TypeScript (TS)

3、Code Runner⭐

image-20230104135642398

快速运行 调试js

4、CSS Peek

working

跳转对应 css

5、DotENV

image-20230104135834335

高亮ENV文件

6、Error Lens

image-20230104135908882

显示错误

7、ESLint

8、GitLens — Git supercharged⭐

image-20230104135949372

在每行代码查看代码是谁修改的

9、JavaScript (ES6) code snippets

image-20230104140007707

ES6代码块

10、jsdoc

image-20230104140038243

快速生成函数注释

11、npm Intellisense

image-20230104140135028

智能npm引入 >>> 没啥用

12、open in browser

image-20230104140224748

CTRL + B 在浏览器打开

13、Path Intellisense⭐

image-20230104140257877

智能路径引入

14、Prettier - Code formatter

15、Smart Click

image-20230104140336602

双击标签,选中标签包裹的内容

16、Tabnine AI⭐⭐

image-20230104140439218

代码提示

17、Turbo Console Log

image-20230104140506060

快速高效的Console Log

18、vscode extension for ECharts

image-20230104140608693

智能提示 echarts 的 options

19、vscode-element-helper

image-20230104140635575

智能提示element-ui

20、path-alias

image-20230104140717079

一个可以解决路径别名提示,跳转的vscode插件 >>> 我测试的时候没啥用

21、i18n Ally⭐

image-20230105102945850

i18n插件,实时预览,非常的好用,

记得在settings.json中配置下面的代码

{
    
    
  "i18n-ally.localesPaths": "locales",
  "i18n-ally.keystyle": "nested",
  "i18n-ally.sortKeys": true,
  "i18n-ally.namespace": true,
  "i18n-ally.enabledParsers": ["yaml", "js"],
  "i18n-ally.sourceLanguage": "en",
  "i18n-ally.displayLanguage": "zh-CN",
  "i18n-ally.enabledFrameworks": ["vue"],
}

22、Tailwind CSS IntelliSense

下载Tailwind CSS

Tailwind CSS效果

智能提示 Tailwind CSS语法

23、vue-helper

image-20230107085841024

Vue2 组件跳转源码 包括 Element-UI 和 vux 和 iView,也可以比如输入el-table,可以生成一个骨架

24、JSON to TS

image-20230107144600771

Json数据一键转Ts

二、Vue相关的

1、Vue 3 Snippets

image-20230104140836503

这个插件基于最新的 Vue 2 及 Vue 3 的 API 添加了 Code Snippets(代码片段)。

2、Vue VSCode Snippets

image-20230104140944234

也是一个vue的代码片段

3、vue-component

image-20230104141005999

智能引入自己写的组件 + 跳转组件 >>> 详情去看官方说明

4、Vue Language Features (Volar)⭐⭐⭐

image-20230104141249104

vue项目必开插件
注意!!!VuterVolar 两个插件不可以共同使用,否则会冲突报错!!!,现在不管是vue2 还是 vue3 都使用这个插件

5、TypeScript Vue Plugin (Volar)

image-20230104141445500

Vue3项目使用的插件

三、美化

1、Material Icon Theme⭐

image-20230104140115548

文件图标

2、Vitesse Theme⭐⭐⭐

image-20230104140554217

主题 >>> 推荐使用 Vitesse Dark Soft

猜你喜欢

转载自blog.csdn.net/weixin_60053942/article/details/129965235