Visual Studio keyboard shortcuts
The Visual Studio Hacks site has a good list of navigation shortcuts here. If you haven't read the Visual Studio Hacks book, it's worth getting.
One thing I didn't see mentioned there is using the find field to open files. If you have a project with lots of files, it can take some time to find the file in the Solution Explorer. But, you can go to the find field (control-/) and then type ">open filename". It even does autocomplete on filename.
I also like the search as you type (or whatever the feature is really called). If you hit control-I and then start typing, it will find the string as you type, so you can just type enough to get where you are going.
I also find I often use control-F3 which finds the next occurence of the selected text. I used to do the same in Mac text editors with cmd-E/cmd-G.
Comments
- Anonymous
March 02, 2006
Dan
You mention control-F3.
I have been using control-F3 to find next occurence of the selected text since VC4.0.
But in VS7 2003 it does not find the selected text if the document I am searching
is not part of the project.
Do you know if there is a solution or if this has been fixed in VS7 2005?
thanks
marty
mcochran@bigfoot.com - Anonymous
March 02, 2006
Hmm, it seems to work fine for me with non-Project files in VS 2005 - Anonymous
March 08, 2006
I found the solution to my control-F3 "find next occurrence of selected text" problem.
It turns out that in VC7 you can finally restrict a search to the project files.
And the Project setting in the control-F (find) also applies to "find next occurrence"