What are your favorite, but less obvious tips and tricks for Visual Studio 2008?

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.

+3
source share
17 answers

The Best Tricks I Find Meet Sara Ford Blog - Hidden Features of Visual Studio (2005-2010)?

+3
source

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/

+3
source

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.

+2
source

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.

+2
source

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.

+1
source

Ctrl +. automatically show smart tags, so Ctrl +. then enter the command to quickly open and use the value of the smart tag.

+1
source

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.

+1
source

Ctrl + K + F to format the selection.
Fixed all my crappy indentation.

+1
source

Ctrl + Alt and mice select a vertical selection of characters.

+1
source

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.

0
source

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

0
source

Interactive search using Ctrl + I am great for quick file search.

0
source

Select all your operators in VS 2008 and go to Edit -> IntelliSense -> Organize Usings -> Remove Unused Usings: -)

0
source

Install R #; -)

0
source

Ctrl + K, Ctrl + C to comment on the selected block of text. Ctrl + K, Ctrl + U to uncomment the text.

Priceless.

0
source

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.

0
source

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.

-one
source

All Articles