I am editing a HTML
file of my blog from Jekyll
in Visual Studio Code :
However,whenyousavethefile,theVisualStudioCodeplacesthereferencetextofthepagelayoutinonlyoneline,breakingthereference:
How to avoid this?
The problem was occurring because of the extension: JS-CSS-HTML Formatter .
Then the solution was to edit the file formatter.json
and set the onSave
property to false
.
To do this, follow the steps below:
1 - Press CTRL+SHIFT+P
and enter Formatter :
2-ChangethevalueofpropertyonSave
tofalse
:
Forthechangetotakeeffect,youmustrestartVisualStudioCode.
This answer of Stack Overflow in English helped me solve the problem.