Force Emmet (VS Code) to wrap all abbreviations inline
up vote
0
down vote
favorite
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.
visual-studio-code vscode-settings emmet
add a comment |
up vote
0
down vote
favorite
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.
visual-studio-code vscode-settings emmet
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
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.
visual-studio-code vscode-settings 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.
visual-studio-code vscode-settings emmet
visual-studio-code vscode-settings emmet
asked Nov 20 at 9:43
Trollsyn
430310
430310
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
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.
Perfect. Thank you kindly!
– Trollsyn
Nov 20 at 21:02
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53390142%2fforce-emmet-vs-code-to-wrap-all-abbreviations-inline%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
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.
Perfect. Thank you kindly!
– Trollsyn
Nov 20 at 21:02
add a comment |
up vote
1
down vote
accepted
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.
Perfect. Thank you kindly!
– Trollsyn
Nov 20 at 21:02
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
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.
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.
edited Nov 21 at 1:48
answered Nov 20 at 19:29
Mark
10.6k33046
10.6k33046
Perfect. Thank you kindly!
– Trollsyn
Nov 20 at 21:02
add a comment |
Perfect. Thank you kindly!
– Trollsyn
Nov 20 at 21:02
Perfect. Thank you kindly!
– Trollsyn
Nov 20 at 21:02
Perfect. Thank you kindly!
– Trollsyn
Nov 20 at 21:02
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53390142%2fforce-emmet-vs-code-to-wrap-all-abbreviations-inline%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown