强制 Emmet (VS Code) 内联包装所有缩写 [英] Force Emmet (VS Code) to wrap all abbreviations inline
问题描述
我经常使用
在您的设置中试试这个:
"emmet.syntaxProfiles": {html":{tag_nl":假}}
tag_nl
:
在新行上用缩进,布尔值输出每个标签.价值观是真实的(每个标签在新行上)、false(无格式)和 'decide'(字符串;仅在新行上使用块级元素).
请参阅有关语法配置文件的emmet 文档 和vscode emmet 配置
这会做你想做的事,但它似乎适用于所有 emmet 扩展,而不仅仅是包装.
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).
It it possible to force Emmet to wrap all my selection inline, i.e. on the same line?
See example below, where a <p>
tag automatically puts my selection on a new line, and a <span>
tag just wraps my selection in the same line.
I would like all wrap-with-abbreviations to behave like the <span
example.
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.
这篇关于强制 Emmet (VS Code) 内联包装所有缩写的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!