我正在为我的项目构建 .editorconfig。对于几个选项,我同时看到“建议”和“仅重构”。这些有什么区别?
最佳答案
违反建议
会在 Visual Studio IDE 中显示为构建消息和建议;请参阅错误列表
中的消息
部分。
Silent
的描述仅适用于重构
,因为它将按原样保存在 .editorconfig
中,例如:
dotnet_naming_rule.interface_should_be_begins_with_i.severity = silent
用户看不到违反仅重构
/静默
规则的行为,但快速操作和重构...
菜单显示解决违规问题的条目(与建议
违规情况类似)。
Microsoft Visual Studio 文档的已解决问题 GitHub说:
Do not show anything to the user when this rule is violated. Code generation features generate code in this style, however. Rules with silent severity participate in cleanup and appear in the Quick Actions and Refactorings menu.
关于visual-studio - Visual Studio 中的 "Suggestion"和 "Refactoring Only"有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70099023/