【问题标题】:XAML Files .editorconfig rulesXAML 文件 .editorconfig 规则
【发布时间】:2020-06-10 07:41:37
【问题描述】:

是否可以在 .editorconfig 中为 VS 2019 声明 xaml 文件必须匹配属性间距和元素间距设置的规则?
谢谢。
我们需要投票: https://developercommunity.visualstudio.com/idea/1078375/editorconfig-support-for-xaml-files.html

【问题讨论】:

  • 我还想了解如何为每个项目设置 XAML 格式规则。你得到任何答案了吗?谢谢
  • @DonBox 不行。这是不可能的。

标签: visual-studio xaml visual-studio-2019 editorconfig


【解决方案1】:

它可能不在 .editorconfig 中,但使用 Visual Studio 的 XAML StylerXAML Styler 2022 扩展名,您可以在 Settings.XamlStyler 文件中定义 XAML 样式,就像使用 .editorconfig 文件一样.

如果您在 Visual Studio 之外需要此功能,则 XAML Styler 可作为控制台应用程序使用。所以你可以在你构建脚本时integrate it

这是最接近.editorconfig

【讨论】:

    猜你喜欢
    • 2020-04-04
    • 2013-10-01
    • 2020-04-28
    • 2021-03-03
    • 1970-01-01
    • 1970-01-01
    • 2011-08-09
    • 1970-01-01
    • 2017-05-17
    相关资源
    最近更新 更多