Refactoring in VS 2005...
-
For *real* refactoring, use Eclipse. :cool: I'm not dissing VS2005 or MS - just stating an opinion. /ravi
Yeah. Eclipse has way more awesome refactoring tools than VS2005 does. I'm always shocked when I go back to VS (for work) from Eclipse (for school) and find that I have to manually refactor stuff.
-
I'd go so far as to say that it's useless. The average refactoring takes slightly longer than a full build. The typical refactor I have tried to do is to get a property from a variable. I stopped using it a long time ago.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
That's why the 3rd party add-on vendors can make a living....
Think Different, Do Smarter, Work for Joy!!
-
I guess you mean "C++ refactoring", ain't you? It's all good in! C# :-D
-
I guess you mean "C++ refactoring", ain't you? It's all good in! C# :-D
VS 2005 has no built-in refactory support for C++. For that you need to seek for some VS add-ons. H.T.
"Think Different, Do Smarter, Work for Joy!!"
-
I'd go so far as to say that it's useless. The average refactoring takes slightly longer than a full build. The typical refactor I have tried to do is to get a property from a variable. I stopped using it a long time ago.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
Christian Graus wrote:
The average refactoring takes slightly longer than a full build.
Now that you mention that, I think I know how they implemented refactoring...they compile it all, then let the runtime optimize it, then decompile it all. Yeah....:)
:badger:
-
No, I mean I could rename a method, property or even a namespace in a few seconds. Although, granted, sometimes it is slower than other, but it's not related to the number of file to modify. It's related to something else (and much more mysterious). I used refactoring essentially renaming...
-
I thought nobody is using it.. :~
[Frozen Thoughts]
Nobody can give you wiser advice than yourself. - Cicero ப்ரம்மா -
No, I mean I could rename a method, property or even a namespace in a few seconds. Although, granted, sometimes it is slower than other, but it's not related to the number of file to modify. It's related to something else (and much more mysterious). I used refactoring essentially renaming...
Super Lloyd wrote:
No, I mean I could rename a method, property or even a namespace in a few seconds
It depends entirely on the size of your project.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
Super Lloyd wrote:
No, I mean I could rename a method, property or even a namespace in a few seconds
It depends entirely on the size of your project.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
I think it depends... of something more mysterious.... I have about 757 C# files for 6.5MB of source code. The time really varies for no apparent reason, but is mostly good... i.e. sometimes it want to recompile the project first, and it is slow, otherwise it's fast.
-
I think it depends... of something more mysterious.... I have about 757 C# files for 6.5MB of source code. The time really varies for no apparent reason, but is mostly good... i.e. sometimes it want to recompile the project first, and it is slow, otherwise it's fast.
According to my experience, and the comments from the C# IDE team, the project size is directly responsible for the time it takes to refactor.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
According to my experience, and the comments from the C# IDE team, the project size is directly responsible for the time it takes to refactor.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
Well, at least according to my own experience, I could say for a project of 700file / 6MB of C# the refactoring should be fast ;) But, as I say, I mostly use refactoring for renaming... (although I have reordered parameter once...) I could also say that defragmenting the hard drive speed up the VisualStudio experience....
-
I use Visual Assist[^] for all my refactoring needs - mainly 'cause I do C++ on VS2003, but it'll do C# and (I think) VB as well, on VS6, 2003 and 2005. Most productive £70 I've ever spent on software, IMO.
-
Use Resharper: it's better and smarter. And the refactoring is damn fast! (but your whole IDE will be slower)
-
Yeah. Eclipse has way more awesome refactoring tools than VS2005 does. I'm always shocked when I go back to VS (for work) from Eclipse (for school) and find that I have to manually refactor stuff.
Heard of Refactor from devexpress? http://www.devexpress.com/Products/NET/IDETools/Refactor/ [Free versions] Refactor!™ for Visual Basic® .NET 2005 http://www.devexpress.com/Products/NET/IDETools/VBRefactor/ Refactor!™ for ASP.NET http://www.devexpress.com/Products/NET/IDETools/RefactorASP/ Refactor!™ for C++ http://www.devexpress.com/Products/NET/IDETools/RefactorCPP/
-
Heard of Refactor from devexpress? http://www.devexpress.com/Products/NET/IDETools/Refactor/ [Free versions] Refactor!™ for Visual Basic® .NET 2005 http://www.devexpress.com/Products/NET/IDETools/VBRefactor/ Refactor!™ for ASP.NET http://www.devexpress.com/Products/NET/IDETools/RefactorASP/ Refactor!™ for C++ http://www.devexpress.com/Products/NET/IDETools/RefactorCPP/
yep, it seems to do a good impression of Intellisense in causing my VS SP1 to go very busy for significant periods of time. I tried working outside my clearcase integration but still slow. Shame, might try emailing them about it. Otherwise I use Whoile Tomato for the few refactorings it does. May it conflicts with Whole Tomato? Andrew
-
I guess you mean "C++ refactoring", ain't you? It's all good in! C# :-D
Try Resharper
-
I used refactorings all the time in IntelliJ (Java IDE from JetBrains). It was smooth, fast, and had a ton of great refactorings. They do have a C# refactoring package - ReSharper (http://www.jetbrains.com/resharper/index.html[^]). Unfortunately my current employer is VB only so I can't use it. Has anyone tried ReSharper from JetBrains? Matt
-
Super Lloyd wrote:
No, I mean I could rename a method, property or even a namespace in a few seconds
It depends entirely on the size of your project.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
I have an extremely large project, a C# Windows application, and almost anything I do that involves refactoring, renaming, or whatever, takes 1.5 to 2 minutes to complete. That's not very long compared to older tools that used to take all night to do things like that, but it's that length of time which is too short to switch to something else, but still quite a long time to stare at the screen, so it hurts your productivity.
"Quality Software since 1983!"
http://www.smoothjazzy.com/ - see the "Programming" section for freeware tools and articles. -
That's why the 3rd party add-on vendors can make a living....
Think Different, Do Smarter, Work for Joy!!
-
I used refactorings all the time in IntelliJ (Java IDE from JetBrains). It was smooth, fast, and had a ton of great refactorings. They do have a C# refactoring package - ReSharper (http://www.jetbrains.com/resharper/index.html[^]). Unfortunately my current employer is VB only so I can't use it. Has anyone tried ReSharper from JetBrains? Matt