The nuance of the question is what are the features of the Visual Studio environment that not everyone knows about, that you are hung up, and about what you would like to know about others.
The Best Tricks I Find Meet Sara Ford Blog - Hidden Features of Visual Studio (2005-2010)?
I would recommend you check out the webcast for the TL46 session from PDC 2008: Microsoft Visual C # IDE: Tips and Tricks. The speaker points out some unobvious things, and also talks about the free, recently released "express" version of CodeRush and some things that it can do.
http://channel9.msdn.com/pdc2008/TL46/
Control + minus: returns to the previous position of the editor. This is especially useful if you temporarily switched from your editing position because you were looking for a character declaration or looking for a string. It also works between files. Control + Shift + minus visits the editor’s position in the opposite direction.
Drag the current location marker to the original window during a debugging session to skip instructions or re-execute statements. In the debugger, the yellow arrow "current instruction" is dragged.
In C ++, the really convenient thing is to open the "Code Definition Window". Therefore, no matter which .cpp file you are editing, the corresponding .h window is displayed in this additional window.
Ctrl +. automatically show smart tags, so Ctrl +. then enter the command to quickly open and use the value of the smart tag.
Ctrl + K + C to comment on the selection
Ctrl + K + U to uncomment the selection
Ctrl +. for smart tags
Ctrl + spacebar to call intellisense
I also like to use prop and foreach code snippets.
Ctrl + K + F to format the selection.Fixed all my crappy indentation.
Ctrl + Alt and mice select a vertical selection of characters.
The ability to unload projects, and then edit them using a text editor. You do this by right-clicking on the project and selecting “Upload Project”, right-clicking on the project and selecting “Edit Project”. Sometimes editing the text of project files is faster than performing operations using gui. For example, you need to copy a long list of links from one project to another. After editing is complete, right-click on the project and select "Load Project" to return to the normal view of the project.
Leaving bookmarks in your code, Ctrl + K + K , you can go to the next bookmark with CTRL + K + N and the previous one with CTRL + K + P
Ctrl + K + K
CTRL + K + N
CTRL + K + P
Interactive search using Ctrl + I am great for quick file search.
Select all your operators in VS 2008 and go to Edit -> IntelliSense -> Organize Usings -> Remove Unused Usings: -)
Install R #; -)
Ctrl + K, Ctrl + C to comment on the selected block of text. Ctrl + K, Ctrl + U to uncomment the text.
Priceless.
Ctrl K + D, formats code and HTML (indentation, etc.)
This is my new favorite trick.
In addition, I often use ctrl + m + o, which collapses all methods.
Executing C # statements interactively in the debugger using the Immediate window. You can enter statements in the Immediate window of the debugger and execute them in the context of the current statement. Of course, only those statements that make sense in the context of the current statement will be executed.