在VS 2019中,可以声明一个规则在.editorconfig文件中,使得XAML文件匹配Attribute Spacing和Element Spacing设置。
谢谢。
我们需要投票:https://developercommunity.visualstudio.com/idea/1078375/editorconfig-support-for-xaml-files.html
在VS 2019中,可以声明一个规则在.editorconfig文件中,使得XAML文件匹配Attribute Spacing和Element Spacing设置。
谢谢。
我们需要投票:https://developercommunity.visualstudio.com/idea/1078375/editorconfig-support-for-xaml-files.html
可能不在.editorconfig
中,但是通过Visual Studio的XAML Styler或XAML Styler 2022扩展,您可以在Settings.XamlStyler文件中定义XAML样式,就像使用.editorconfig
文件一样。
如果您需要在Visual Studio之外使用它,则可以将XAML Styler作为控制台应用程序使用。因此,您可以将其集成到构建脚本中。
这是我们接近.editorconfig
的方式。