首页 > 其他分享 >vscode格式

vscode格式

时间:2024-02-26 10:00:45浏览次数:20  
标签:false format vscode defaultFormatter vetur 格式 prettier

ctr+shift+P   搜 settings.json

 

{
    "security.workspace.trust.untrustedFiles": "open",
    "vetur.format.options.tabSize": 4,
    "vetur.format.defaultFormatterOptions": {
        "prettier": {
            "semi": false,
            "singleQuote": true
        },
        "js-beautify-html": {
            "wrap_attributes": "auto",
            "wrap_line_length": 12000,
            "end_with_newline": false
        },
        "prettyhtml": {
            "printWidth": 100,
            "singleQuote": true,
            "wrapAttributes": false,
            "sortAttributes": false
        }
    },
    "vetur.format.styleInitialIndent": false,
    //"explorer.confirmDelete": false,
    "vetur.format.defaultFormatter.html": "js-beautify-html",
    "vetur.format.defaultFormatter.js": "vscode-typescript",
    "[vue]": {
        "editor.defaultFormatter": "octref.vetur"
    },
    "vetur.format.defaultFormatter.css": "none",
    "[jsonc]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "[javascript]": {
        "editor.defaultFormatter": "vscode.typescript-language-features"
    },
    "prettier.endOfLine": "auto",
    "vetur.ignoreProjectWarning": true
}

 

标签:false,format,vscode,defaultFormatter,vetur,格式,prettier
From: https://www.cnblogs.com/dianzan/p/18033716

相关文章

  • Arrow和ArrowStream格式的区别
    Arrow是Apache软件基金会的一个顶级项目,它提供了一种内存布局格式,用于在不同系统之间高效地共享数据。Arrow旨在提供一种跨平台、跨语言的数据交换格式,以便在大数据处理和分析领域中提高数据处理效率。在Arrow中,数据可以被序列化为不同的格式,其中两种主要格式是Ar......
  • Python 字符串格式化输出
    数字n:int=1000000000print(f'{n:_}')#1_000_000_000print(f'{n:,}')#1,000,000,000对齐var:str='var'#右对齐,使用_填充print(f'{var:_>20}')#_________________var#左对齐,使用#填充print(f'{var:#<20}�......
  • PNG格式PNG(Portable Network Graphics)位图图形文件格式 无损压缩的图片格式,支持索引
    PNG(PortableNetworkGraphics)是一种位图图形文件格式,它是一种无损压缩的图片格式,支持索引、灰度、RGB和RGBA等多种颜色模式。PNG格式支持多种颜色模式,包括以下几种:索引色模式(IndexedColor):索引色模式使用一个颜色索引表来存储图像中使用的颜色。每个像素使用索引值来指定......
  • 用wsl和windows vscode 进行开发
    https://code.visualstudio.com/docs/remote/wsl用wsl和windowsvscode进行开发上面是官方教程准备:安装wsl安装vscode插件:RemoteDevelopment使用(多种方式):在wslubuntu中输入code.在code中打开F1-WSL:xxxdistro...在windows用命令行启动code,附带下......
  • 导出页面为PDF格式
     安装(注意安装顺序) npminstall--savehtml2canvas npminstall--save jspdf文件htmlToPdf.js//导出页面为PDF格式importhtml2Canvasfrom'html2canvas'importJsPDFfrom'jspdf'exportdefault{install(Vue,options){Vue.prototype.getPd......
  • c# 格式化数字 ToString方法使用总结
    decimala11=100100.01m;decimala12=100100.51m;decimala13=100100.50m;decimala14=100100.00m;decimala15=100100.55m;decimala16=100100.54m;Console.WriteLine("#.##输出");Console.WriteLine(a11.ToString("#.##"));Console.......
  • 高通平台自动挂载exFAT格式SD卡和U盘
    由于工作需要,想实现exFAT格式的U盘和SD卡自动挂载,但目前看到的文章基本都是采用MTK平台,要不就是android4.x,太老了。而且我试了下没有可以挂载成功的,通过一加开源源码修改了一份exFAT的移植方案。基于android7.0高通平台。采用noFuse方式添加exFAT文件系统,并实现SD卡自动挂载。K......
  • TGA文件格式
    目录简介术语TGA格式TGA头部(TGAHeader)图像/颜色表数据(Image/ColorMapData)颜色表数据图像数据开发者区域(DevelopArea)扩展区域(EXTENSIONAREA)TGA文件脚注(TGAFILEFOOTER)图像类型(ImageType)1:颜色表图像类型2:真彩图像3:黑白无颜色表图像9:RLE压缩的颜色表图像1......
  • 24 - 格式化字符串
    格式化字符串笔者认为格式化字符串(formattedstring)在任何语言里都值得单独拿出来做个笔记,因为它是编程中控制输出的重要一环。FormattedStringLiterals(f-string)官网的翻译为“格式化字符串字面值”。比较常用的格式化方法。在字符串前加上前缀f或F,通过{expres......
  • vscode配置cpplint
    cpplint是Google开发的一个用于检查C++代码风格的工具。它可以自动扫描C++源代码,并提供有关代码规范、风格和错误的反馈。cpplint基于Google的C++编码规范,但也可以配置为符合其他的代码风格指南。注意,cpplint不依赖于vscode存在,可以单独在命令行中使用。安装cpplint:pipinsta......