英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。




评论