ReSharper是否有一种方法来保留一些旧样式?

huangapple go评论72阅读模式
英文:

Is there a way to tell ReSharper to retain some old styles?

问题

我喜欢微软在ASP.NET中所做的许多改进,但我不喜欢删除 main(string[]args) 和删除命名空间的 {...}。有没有办法告诉ReSharper我希望它建议这两种情况的旧方法?

英文:

While I like a lot of the improvements Microsoft has made in ASP.NET, I don't like eliminating main(string[]args) and eliminating {...} for namespaces.

Is there a way to tell ReSharper I want it to suggest the old way for both of these cases?

答案1

得分: 1

For namespaces, ReSharper->Options...->Code Editing->C#->Syntax Style->Code body->Namespaces select Block-scoped option.

Top-level statements (without main) are now an option when you create new projects in Visual Studio.

英文:

For namespaces, ReSharper->Options...->Code Editing->C#->Syntax Style->Code body->Namespaces select Block-scoped option.

ReSharper是否有一种方法来保留一些旧样式?

Top-level statements (without main) are now an option when you create new projects in Visual Studio.

ReSharper是否有一种方法来保留一些旧样式?

huangapple
  • 本文由 发表于 2023年4月11日 05:13:30
  • 转载请务必保留本文链接:https://go.coder-hub.com/75980788.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定