Visual Studio Code Breaking Jekyll Page Layout

0

I am editing a HTML file of my blog from Jekyll in Visual Studio Code :

However,whenyousavethefile,theVisualStudioCodeplacesthereferencetextofthepagelayoutinonlyoneline,breakingthereference:

How to avoid this?

    
asked by anonymous 04.04.2017 / 03:33

1 answer

0

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-ChangethevalueofpropertyonSavetofalse:

Forthechangetotakeeffect,youmustrestartVisualStudioCode.

This answer of Stack Overflow in English helped me solve the problem.

    
23.04.2017 / 04:00