VSCode插件安装完成后的配置详解

作者:雪藏琉璃峰 时间:2022-02-16 00:36:34 

VSCode插件安装完成后,有些插件如果你想要完整的使用其中的功能得在settings.json中就行配置,接下来是我常用的一些配置


{
 "workbench.iconTheme": "vscode-icons",
 "window.zoomLevel": 0,
 "files.autoSave": "off",
 "eslint.runtime": "",
 "editor.codeActionsOnSave": {
   "source.fixAll.eslint": true
 },
 "eslint.codeAction.disableRuleComment": {},
 "eslint.codeAction.showDocumentation": {},
 "editor.formatOnSave": true,
 "vetur.completion.scaffoldSnippetSources": {},
 "vetur.format.defaultFormatter.html": "prettier",
 // 是否允许自定义的snippet片段提示
 "editor.snippetSuggestions": "top",
 "editor.fontSize": 14,
 "editor.fontWeight": "400",
 "editor.formatOnType": true,
 "guides.enabled": false,
 "editor.tabSize": 2,
 "git.confirmSync": false,
 "editor.renderWhitespace": "boundary",
 "editor.cursorBlinking": "smooth",
 "editor.minimap.enabled": true,
 "editor.minimap.renderCharacters": false,
 "window.title": "${dirty}${activeEditorMedium}${separator}${rootName}",
 "editor.codeLens": true,
 // 配置文件关联,以便启用对应的提示
 "files.associations": {
   "*.vue": "vue",
   "*.wxss": "css",
   "*.cjson": "jsonc",
   "*.wxs": "javascript"
 },
 // 配置emmet是否启用tab展开缩写
 "emmet.triggerExpansionOnTab": true,
 // 配置emmet对文件类型的支持
 "emmet.syntaxProfiles": {
   "javascript": "jsx",
   "vue": "html",
   "vue-html": "html"
 },
 // 是否开启eslint检测
 "eslint.enable": true,
 // eslint配置文件
 "eslint.options": {
   "extensions": [
     ".js",
     ".vue"
   ]
 },
 "git.autofetch": true,
 "workbench.colorTheme": "One Dark Pro",
 "emmet.includeLanguages": {
   "wxml": "html"
 },
 "minapp-vscode.disableAutoConfig": true,
}

这个配置能够直接让你ctrl+/注释代码,不管是vue的还是html的;也能ctrl+s时使用eslint格式化代码;输入for,forEach,map等的自动完成代码等一系列的快捷操作

来源:https://blog.csdn.net/z772330927/article/details/108192816

标签:VSCode,配置
0
投稿

猜你喜欢

  • Python系统公网私网流量监控实现流程

    2022-05-16 07:55:39
  • python放大图片和画方格实现算法

    2023-05-21 15:22:41
  • 如何删除Git本地仓库和删除GitHub上的Git远程仓库Repository(推荐)

    2023-01-30 16:07:59
  • jQuery 1.4新特性及其变化(上)

    2010-01-18 16:33:00
  • 如何使用python获取现在的日期与时间

    2021-07-21 16:50:12
  • 对python中的argv和argc使用详解

    2021-12-09 02:37:52
  • Django集成MongoDB实现过程解析

    2022-07-10 03:32:35
  • 用AspJpeg调整文字水印透明,生成图片水印的效果

    2008-12-29 19:43:00
  • python使用paramiko模块实现ssh远程登陆上传文件并执行

    2021-01-09 00:35:03
  • python 图像判断,清晰度(明暗),彩色与黑白实例

    2023-09-04 12:58:00
  • python制作简单计算器功能

    2022-08-06 20:57:16
  • python输出第n个默尼森数的实现示例

    2022-08-12 21:07:25
  • Python基础之进程详解

    2023-07-10 23:58:43
  • python调用摄像头的示例代码

    2021-10-11 02:18:09
  • python处理multipart/form-data的请求方法

    2022-01-22 22:14:11
  • favicon.ico以及动态图片的实现

    2008-07-03 12:34:00
  • Oracle数据库集复制方法浅议

    2010-07-21 12:50:00
  • Python生成九宫格图片的示例代码

    2023-03-16 20:29:38
  • 在pytorch中如何查看模型model参数parameters

    2021-12-04 22:43:29
  • django+echart绘制曲线图的方法示例

    2023-04-22 20:56:52
  • asp之家 网络编程 m.aspxhome.com