tarzan of the source code
Sometimes when moving through a large visual studio project it feels like some kind of parkour chase scene... I do a search to find something similar to what i'm looking for -- hit F12 to go to definition -- rename the offending class in order to cause compiler errors from all references to that class -- look through the list of compiler errors until i find the reference i'm looking for -- scan through that method until i find something it's doing -- f12 to go to another definition... like swinging through a jungle, slashing and jumping, grabbing onto vines and swinging... jungle vine navigation, tarzan of the source code.
Parkour, interesting thing.
'Farmer Jeb' on Fri, 11 May 2007 04:08:35 GMT, sez: Parkour's so hot right now.
'Goran' on Fri, 11 May 2007 04:14:49 GMT, sez: I'm with you on this one but why renaming classes? Find All References not working for you?
'lb' on Fri, 11 May 2007 04:21:11 GMT, sez: @Goran:
the project in question is VB.net 1.0 -- no 'find all references' option!
'Mike' on Fri, 11 May 2007 05:55:41 GMT, sez: I recently purchased Resharper http://www.jetbrains.com/resharper/ (not sure if VB is supported for VS2003 but apparently is for VS2005) and now I can't live without it.
Double-click on the class name (or other referenced item) and hit ALT-F7, all references to the item are listed and then you can easily navigate through them with CTRL-ALT-F7.
A real timesaver !
'Pradeep' on Fri, 11 May 2007 11:27:07 GMT, sez: Yes . resharper is a great tool . single keystroke to renamae , move classes [across all projects , namespaces] ,
I dont think they support VB 1.0 . Code rush is another alternative .
oh btw watch out for that tree .
'lb' on Fri, 11 May 2007 11:29:34 GMT, sez: resharper has earnt a pretty bad reputation in my office, since we rushed out and bought it (back in 2003 days) only to find it had major issues with large projects.
it's somewhat improved in the 2005 era, but i still look longingly at code rush, wishing we'd gone that way. Maybe the grass is always greener?
'lb' on Fri, 11 May 2007 11:36:39 GMT, sez: oh just to clarify for others: i'm by no means a specifically 'vb.net 1.0 guy' -- i'm equally c# 2.0 and very language agnostic.
no language is good enough. no keyboard is good enough. no belgian beer is good enough. and that's saying something.
'Matt' on Fri, 11 May 2007 12:56:31 GMT, sez: I like to use reflector to look through code in this way, although it's not always the best.
'Ted Jardine' on Fri, 11 May 2007 17:06:53 GMT, sez: Resharper! Resharper! Resharper!
Whenever I happen to work on something in VS without Resharper (i.e. older VB apps) I cry.
'Jeremy' on Sat, 12 May 2007 11:32:51 GMT, sez: Resharper is da bomb, but of course it does not work with VB (although there is *some* support in the latest version).
As mentioned above, if you were working in C# (1.1 or 2.0), all you would have to do would be hit Alt-F7, and it will show all usages of that class with a little "search style preview" next each. It can also filter the search, so that it only shows usages where they are read/written, etc.
I have used Resharper with some relatively large solutions and projects (20 projects, hundreds of files), and it works fine. You should try the latest version.
|