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

The best tricks I find come across Sara Ford's blog stackoverflow.com/questions/100420/hidde....

The best tricks I find come across Sara Ford's blog - stackoverflow.com/questions/100420/hidde....

I'd recommend you check out the Webcast for session TL46 from PDC 2008: Microsoft Visual C# IDE: Tips and Tricks. The speaker points out some non-obvious things, and also talks about the free, recently released "express" version of CodeRush and some of the things that it can do. channel9.msdn.com/pdc2008/TL46.

Control+minus : goes back to the previous editor position. This is especially helpful if you have temporarily navigated away from your editting position because you've looked up a symbol declaration or searched for a string. It works between files too.

Control+Shift+minus visits the editor positions in the opposite direction.

Dragging the current location marker in the source window during a debug session to skip statements or re-execute statements. In the debugger the yellow "current statement" arrow is draggable.

In C++, a really handy thing to have is to open the "Code Definition Window". So no matter what . Cpp file you are editing, the corresponding .

H window is displayed in this extra window.

Ctrl + . To automatically show smart tags, so Ctrl +. Then enter will quickly open and use the smart tag value.

Ctrl + K + C to comment out a selection Ctrl + K + U to uncomment a selection Ctrl + . For smart tags Ctrl + space to bring up intellisense I also like to use the prop and foreach code snippets.

Ctrl + K + F to format a selection. Fixes all my crappy indenting messes.

Another similar tip is to delete a }, and add it again. It will also reindent the code. – Frode Lillerud May 30 '09 at 10:59.

Ctrl + Alt and mouse select allows vertical selection of characters.

The ability to unload projects and then to edit them using the text editor. You do this by right-clicking on a project and selecting "Unload Project", the right-clicking on the project and select "Edit project". Sometimes editing the text of the project files is faster than carrying out operations using the gui.

For example, having to copy a long list of references from one project to another. Once the editing is done, you right-click on the project and select "Load Project" to return to the normal project view.

Executing C# statements interactively in the debugger using the Immediate Window. You can type statements into the Immediate window of the debugger, and it will execute them in the context of the current statement. Of course, only statements that make sense in the context of the current statement will execute.

Leaving bookmarks in your code, with Ctrl + K + K, then you can navigate to the next bookmark with CTRL + K + N , and to the previous with CTRL + K + P.

Interactive search with Ctrl+I is great for fast searching through a file.

Ghlight all your using statements in VS 2008 and go to Edit -> IntelliSense -> Organize Usings -> Remove Unused Usings :-).

You can do this from the right click context menu in a code window too. You don't have to highlight the using statements, either. – user39603 Dec 3 '08 at 10:12.

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

Ctrl K + D, formats code-behind AND HTML (Indenting, etc) It is my new favorite trick. Also, I use ctrl + m + o frequently, which collapses all methods.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions