自动代码格式化(操作editor.action.format)中断了Jekyll(又名Github Pages)页面YAML的工作。
自动格式化之前的index.html:
---
layout: default
title: Awesome page
bodyClass: homepage
permalink: /
---
(rest of the content)
Run Code Online (Sandbox Code Playgroud)
自动格式化后的index.html:
--- layout: default title: Awesome page bodyClass: homepage permalink: / ---
(rest of the content is formatted ok, regular html syntax)
Run Code Online (Sandbox Code Playgroud)
如何调整VS代码格式化规则?