Vue的VS Code的枚举,“用缩写包装”会删除缩进

问题描述 投票:0回答:1

[Emmet在VSCode中使用模板中的Vue.js的“用缩写包装”命令对我来说是行为不端。

将代码块包装在任何元素内(在此示例中为div导致该代码块内的所有压痕都被删除。

我已经尝试过调整各种设置,但无法弄清楚是什么原因造成了这种格式!

之前:Before:

之后:After:

我的settings.json文件看起来像这样:

{
    "editor.fontLigatures": true,
    "editor.tabSize": 2,
    "vetur.validation.template": false,
    "vetur.completion.useScaffoldSnippets": false,
    "emmet.syntaxProfiles": {
        "html": {
            "attr_quotes": "single",
            "indent": true,
            "tag_nl": true
        },
        "vue-html": "html",
        "vue": "html"
    },
    "window.zoomLevel": -1,
    "editor.fontSize": 14,
    "sync.gist": "bcd2ebd3919d3e74184418b308e3aa85",
    "javascript.updateImportsOnFileMove.enabled": "always",
    "javascript.preferences.quoteStyle": "single",
    "vetur.format.defaultFormatter.html": "none",
    "vetur.complete": true,
    "workbench.iconTheme": "chalice-icon-theme",
    "material-icon-theme.saturation": 0.5,
    "editor.fontFamily": "'Fira Code', 'Courier New', monospace",
    "workbench.colorCustomizations": {
        "titleBar.activeBackground": "#000",
        "tab.activeBorder": "#ffff73"
    },
    "editor.minimap.enabled": false,
    "explorer.openEditors.visible": 0,
    "editor.wrappingIndent": "indent",
    "editor.formatOnType": false,
    "editor.formatOnSave": false,
    "editor.formatOnPaste": false,
    "editor.detectIndentation": true,
    "emmet.excludeLanguages": [
        "markdown"
    ],
    "[vue]": {
        "editor.defaultFormatter": "octref.vetur"
    },
    "vetur.format.defaultFormatterOptions": {
    },
    "emmet.extensionsPath": "",
    "vetur.completion.scaffoldSnippetSources": {

    }
}
vue.js visual-studio-code vscode-settings emmet vetur
1个回答
0
投票

问题已解决。

© www.soinside.com 2019 - 2024. All rights reserved.