首页 > 解决方案 > 如何在@符号上使用换行符格式化VS Code中的车把?

问题描述

在 Visual Studio 中,有没有办法将车把文档 ( *.hbs) 格式化为@在新行中显示符号,如下所示:

<SectionHeadingBar>
  <SectionHeading 
    @icon={{hash type="fa-icon" iconName="clipboard-list" prefix="fal" }} 
    @title={{t "global.tests.label"}} />
</SectionHeadingBar>

我目前在

Version: 1.58.2 (Universal)
Commit: c3f126316369cd610563c75b1b1725e0679adfb3
Date: 2021-07-14T22:09:06.581Z
Electron: 12.0.13
Chrome: 89.0.4389.128
Node.js: 14.16.0
V8: 8.9.255.25-electron.0
OS: Darwin x64 20.5.0

使用默认的 HTML 格式化程序。

标签: visual-studio-codevscode-settings

解决方案


推荐阅读