You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using VS Code which uses beautify for formatting document. I'am doing project with Jekyll. I think you know is is default static page generator for Github Pages.
Every document that I want to be processed by Jekyll have to include as they call it Front Matter.
---
title: This is my document
layout: default
tags: tag1, tag2
category: news
---
This is YML. It tells Jekyll meta data about this file.
If beautification is applied this turns into single line
--- title: This is my document layout: default tags: tag1, tag2 category: news ---
Which is not recognized as Front Matter by Jekyll.
So I have to turn beautification off in VS Code completely for every HTML document.
Is it possible to detect Front Matter and not to format it? Looks like there is not parameter to exclude it from formatting because it is not in HTML tag.
Description
I am using VS Code which uses beautify for formatting document. I'am doing project with Jekyll. I think you know is is default static page generator for Github Pages.
Every document that I want to be processed by Jekyll have to include as they call it Front Matter.
This is YML. It tells Jekyll meta data about this file.
If beautification is applied this turns into single line
Which is not recognized as Front Matter by Jekyll.
So I have to turn beautification off in VS Code completely for every HTML document.
Is it possible to detect Front Matter and not to format it? Looks like there is not parameter to exclude it from formatting because it is not in HTML tag.
Before
The code looked like this before beautification:
Expected
The code should have looked like this after beautification:
Actual Output
The code actually looked like this after beautification:
Steps to Reproduce
Environment
OS: macOS
Visual Studio Code
Settings
The text was updated successfully, but these errors were encountered: