Answer the question
In order to leave comments, you need to log in
Visual studio code formatter - how to exclude part of the code from processing?
Hello.
(Formatter in VSC can be launched like this: alt+shift+f or ctrl+shift+p+"format document")
How to exclude part of the code from processing by the built-in VSC formatter?
Let me explain with an example of HTML.
Code part:
...
<div>...<div
><div>...</div>
...
...
<div>...<div>
<div>...</div>
...
Answer the question
In order to leave comments, you need to log in
I am providing an answer to my own question.
VSC has this setting:
// Keep text content together between this string.
"html.format.unformattedContentDelimiter": "",
Extensions>HTML>Format: Unformatted Content Delimiter.
<!--unformat-->
, <!--unformat-->
<div
><div></div>
</div>
<!--unformat-->
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question