【发布时间】:2019-12-20 05:38:29
【问题描述】:
自动代码格式化(操作editor.action.format)会破坏Jekyll (aka Github Pages) 页面YAML front matter。
index.html 自动格式化前:
---
layout: default
title: Awesome page
bodyClass: homepage
permalink: /
---
(rest of the content)
index.html 自动格式化后:
--- layout: default title: Awesome page bodyClass: homepage permalink: / ---
(rest of the content is formatted ok, regular html syntax)
如何调整 VS 代码格式规则?
【问题讨论】: