您希望有哪些复杂的重构功能?
CodeRush 和 Resharper 等工具提供了许多简单的重构,例如“重命名变量”。但如果你可以拥有任何重构功能(无论多么复杂),它会是什么?
(我知道,每个人都希望进行“使程序完美”的重构,但让我们现实一点。)
Tools like CodeRush and Resharper offer lots of simple refactorings, such as 'Rename Variable'. But if you could have any refactoring feature at all (no matter how complex), what would it be?
(I know, everyone wants a 'make program perfect' refactoring, but let's be realistic here.)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我不会特别喜欢某个特定功能。我更喜欢对现有内置功能进行改进。即我想声明我的代码是如何重构的,即命名约定和变量定位。举个例子,我希望我的获取/设置属性如下:
但是视觉工作室以某种我无法忍受的疯狂方式做到了这一点,这不符合我们的编码标准。
如果每个现有的重构方法都不感觉好像是由不同的人用自己的想法编写的,那就太好了。
I wouldn't particularly like a specific feature. I'd prefer improvements on the existing built in functions. I.e. I'd like to declare how my code is refactored, i.e. naming conventions and variable positioning. As an example, I'd like my get/set properties to be as follows:
But visual studios does it in some crazy way I cant stand and that doesn't meet our coding standards.
It'd be good if every existing refactoring method didn't feel as though it'd been written by a different person with their own ideas.