Visual Studio Code breaking Jekyll’s page layout

Asked

Viewed 249 times

0

I’m editing a file HTML from my blog’s Jekyll in the Visual Studio Code:

inserir a descrição da imagem aqui

However, when saving the file, Visual Studio Code puts the page layout reference text in only one line, breaking the reference:

inserir a descrição da imagem aqui

How to prevent this?

1 answer

0


The problem was occurring because of the extension: JS-CSS-HTML Formatter.

So the solution was to edit the file formatter.json and set the property onSave for false.

To do this, I followed the steps:

1 - Press CTRL+SHIFT+P and type Formatter:

inserir a descrição da imagem aqui

2 - Change property value onSave for false:

inserir a descrição da imagem aqui

For the change to take effect, you need to restart Visual Studio Code.

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.