自动格式化天蓝色二头肌文件

问题描述 投票:0回答:2

如何自动格式化天蓝色二头肌文件以具有编写/格式化代码的通用方法 来自

param instLocation array = [
    'euw'
]

param instLocation array = ['euw']
azure azure-resource-manager azure-bicep
2个回答
0
投票

要自动格式化天蓝色二头肌文件,您可以使用


0
投票

您可以通过设置在 VS Code 中设置自动格式化。最佳实践是针对每个项目进行配置。

将其放入您的

.vscode/settings.json
即可完成工作:

{
  "editor.formatOnSave": true,
  "[bicep]": {
    "editor.defaultFormatter": "ms-azuretools.vscode-bicep",
  }
}
© www.soinside.com 2019 - 2024. All rights reserved.