开发者

Fast easy refactoring in visual studio

开发者 https://www.devze.com 2023-03-19 23:15 出处:网络
I have a large project that is quite a mess.There\'s God classes, poor variable naming, poor indentation and spacing...among other issues.

I have a large project that is quite a mess. There's God classes, poor variable naming, poor indentation and spacing...among other issues.

I'm l开发者_运维问答ooking for a quick and easy way to make marketable improvements to such a project. In Visual Studio 2010 CTRL + K and CTRL + D gives me fast code cleanup. Organize usings takes out unused namespaces. But, both only seem to work on 1 page. Can I apply these changes to a project? Are there any similar cleanup techniques or free and reliable 3rd party addons?


Try out Resharper-- it can do what you're looking for.


One third party extension that I use that is free is DevExpress' Coderush Xpress (For C# and VB), which is the free edition of their full product. The great thing about this is that the express edition still lets you add CodeRush plugins to it (in addition to several project-wide refactoring options), which opens you up to a ton more options than just the Visual Studio Plugins.

Here is a huge list of the plugins available for CR Xpress.


I have been using Visual Assist X for quite some time, and I found it very useful. It is not free, and it may not automate the sweeping changes you seem to be looking for, but it makes simple refactoring much easier.

P.S. I have been using it for C++, not C#. But if anything, I would assume that it would have more capabilities for C#.

0

精彩评论

暂无评论...
验证码 换一张
取 消