自動代碼格式化(動作editor.action.format
)中斷Jekyll (aka Github Pages)頁碼YAML front matter。代碼格式化破解VS代碼中的Jekyll YAML前置指令
的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的代碼格式?
謝謝@yviedev,雖然我知道。這並不能解決問題,因爲我想爲其他文件設置自動代碼格式。 – MatFiz