Force Emmet (VS Code) to wrap all abbreviations inline

后端 未结 1 1769
眼角桃花
眼角桃花 2021-01-20 03:52

I often wrap parts of my HTML text inside tags using Emmet in VS Code.

The command is \"Emmet: Wrap with Abbreviation\" (Alt+Shift+W on Windows).

<
相关标签:
1条回答
  • 2021-01-20 04:27

    Try this in your settings:

    "emmet.syntaxProfiles": {
      "html": {
         "tag_nl": false
      }
    }
    

    tag_nl:

    output each tag on new line with indentation, boolean. Values are true (each tag on new line), false (no formatting) and 'decide' (string; only block-level elements on new lines).

    See emmet doc on syntax profiles and vscode emmet config

    This will do what you want but it appears to apply to all emmet expansions, not just wraps.

    0 讨论(0)
提交回复
热议问题