首页 > 其他分享 >vscode settings.json配置项

vscode settings.json配置项

时间:2022-10-11 00:22:49浏览次数:38  
标签:false prettier vscode settings json eslint true editor

安装通用插件

  1、Prettier - Code formatter

  2、Vue 3 Snippets

  3、Vue Language Features (Volar)

安装项目依赖

npm install eslint-plugin-vue @typescript-eslint/parser @typescript-eslint/eslint-plugin
npm install prettier eslint-config-prettier eslint-plugin-prettier

Vue 3.0 配置项

{
  "terminal.integrated.fontSize": 18, // terminal 框的字体大小
  "editor.fontSize": 16, // 编辑器字体大小
  "editor.tabSize": 4, // Tab 的大小 2个空格
  "editor.formatOnSave": true, // 保存是格式化
  "editor.bracketPairColorization.enabled": true,
  "editor.guides.bracketPairs": true,
  "editor.codeActionsOnSave": { "source.fixAll.eslint": true },
  "editor.defaultFormatter": "esbenp.prettier-vscode",

  "prettier.useEditorConfig": false, //是否使用
  "prettier.singleQuote": true, // 单引号
  "prettier.semi": false, // 是否在每行末尾添加分号
  "prettier.printWidth": 120, //每行超过多少字符自动换行
  "prettier.trailingComma": "none", //尽可能控制尾随逗号的输出
  "prettier.singleAttributePerLine": false,

  "eslint.validate": ["javascript", "javascriptreact", "html", "vue", "typescript", "typescriptreact"]
}

  

标签:false,prettier,vscode,settings,json,eslint,true,editor
From: https://www.cnblogs.com/wang-wen-jun/p/16777903.html

相关文章

  • XML和JSON数据格式
    目录​​XML​​​​DTD(文档类型定义)​​​​DTD实体​​​​JSON​​​​使用python解析JSON数据​​​​XML和JSON的区别 ​​​​XML的优缺点​​​​JSON的优缺点​......
  • vscode——如何在vscode中运行C/C++
    前言mingw-w64:https://sourceforge.net/projects/mingw-w64/files/mingw-w64/内容安装mingw-w64下载地址x86_64-8.1.0-release-win32-sjlj-rt_v6-rev0.7z:x86_64-8.1......
  • vscode markdown WYSIWYG 所见即所得编辑和预览
    一直使用Typora编写markdown,随着vscode在工作中使用的越来越多,产生了一个想法:能不能在vscode中写markdown,减少软件的成本?可是vscode官方自带的的markdown体验却一般般,那......
  • net core 动态设置appsettings.json
    配置基类该类主要用于判断传递的值是否为类对象,方便赋值1publicinterfaceIBaseConfigEntity2{34} 配置类 建立配置存储类1publicc......
  • ABAP数据转Json
    Json数据类型对应ABAP的定义jsonabap备注字符串string、char 数字p、i 对象结构体、内表 数组string需要而外写逻辑处理布尔abap_boola......
  • Vue系列---【at Socket.writeAfterFIN [as write] (net.js:441:14) at PoolWorker
    1.问题描述:前端是vue项目,打包和打镜像的时候,本地没问题,jenkins物理机打流水线也没问题,但是到容器云平台使用自带的流水线打包打镜像的时候,就报错了。上次成功上线的代......
  • Uncaught TypeError: Converting circular structure to JSON
     在使用JSON.stringify方法去转化成字符串,会报错TypeError:ConvertingcircularstructuretoJSON原因: 对象中有对自身的循环引用; 解决方法:下面的 json_str 就......
  • vscode include<stdio.h>头文件红色的解决办法
    原因是标准库没识别到。前提需要安装c/c++插件第一步:点击下面win按钮,选择配置JSON第二步:打开c_cpp_properties.json,添加include路径,放在最上面......
  • definitions.json
     AdvancedRestClient的下载包链接:​​下载包​​​ 提取码:ofl3  还需要一个definitions.json 文件,从网上找的时候,都是需要积分的。然后去github上找了源码definit......
  • C# 遍历所有目录并在内部查找所有“sales.json”文件
    usingSystem;usingSystem.IO;usingSystem.Collections.Generic;namespacefiles_module{classProgram{staticvoidMain(string[]args){......