vscode vetur格式化不换行最新设置分享笔记

本文介绍了如何通过两步操作使VSCode实现优雅的代码格式化,包括设置编辑器字体大小、配置代码美化插件、自动换行等,旨在帮助前端开发者提升编码体验和代码整洁度。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

优雅代码 只需两步;

打开设置 ---------点击设置文本;

 5年前端使用的格式化代码块     你只需复制粘贴保存

{
    "editor.fontSize": 18,
    "glassit.alpha": 255,
    "vetur.format.defaultFormatter.html": "js-beautify-html",
        "emmet.includeLanguages": {
            "wxml": "html"
        },
        "minapp-vscode.disableAutoConfig": true,
        "explorer.confirmDelete": false,
        "vetur.format.options.tabSize": 4,
        "vetur.format.defaultFormatterOptions":{
            

            "js-beautify-html":{
                "wrap_attributes":"auto"
            }
        },
        "editor.suggestSelection": "first",
        "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
        "diffEditor.ignoreTrimWhitespace": false,
        "[javascript]": {
            "editor.defaultFormatter": "HookyQR.beautify"
        },
        "[scss]": {
            "editor.defaultFormatter": "HookyQR.beautify"
        },
        "security.workspace.trust.untrustedFiles": "open",
        "git.confirmSync": false,
        "workbench.startupEditor": "none",
        "[vue]": {
            "editor.defaultFormatter": "octref.vetur"
        }
    
    // "vetur.format.defaultFormatterOptions": {
    //     "js-beautify-html": {
    //         "wrap_attributes": "force-expand-multiline"
    //     },
    //     "prettyhtml": {
    //         "printWidth": 100,
    //         "singleQuote": false,
    //         "wrapAttributes": false,
    //         "sortAttributes": false
    //     }
    // }
}

第二步;点击查看  不设置 自动换行;

养成好习惯:::登录vscode 同步设置代码 随时随地优雅写代码

over  求关注!!!!!!

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值