Monday, June 9, 2008

IDE Tips & Tricks in vs2008 (Some work in 2005)

1) can use objects outside solutions
2) Repeat Search - F3 - Highlight a word then Crtl -F3
3) Box Selection - Alt -Shift...use direction arrows...select stuff in a box...does not highlight items at beginning of 2nd line
4) Cycle Paste - Ctrl -shift U...Cycles though what is on clipboard...Will need to turn off copy in Text -> Editor -> Properties
5) Toolbox General Tab (looks like I missed writing notes on this 1)
6) Snippet - Tab - Tab.... uses key words to help find snippet you want
- Code Snippet Editor - add,remove, import snippets
7)Command window - ctrl I, find Combo box can be used for parameters for commands demos showed finding routine in combo...press F9 (while still in combo) puts a break point at beginning of routine
8) right click - tab...Close all windows but this one in VS
9) Ctrl -Tab...brings up list of all files open
10) Change font size -- Properties, Environment, fonts and colors...can pick environment font for your machine
11) Different window layouts
- Full screen Mode Shift-Alt-Enter
- File mode (missed command)
12) Misc File Project - Finds code not in Project, will add to solution
13) Open Visual studio where you want...can set what happens when you start visual studio, can set to open last solution worked on
14) Trace Points - Built in Trace statements that log on your behalf (to debug window)
- Right click a line -- choose add tracepoint
15) Conditional breakpoints - Break points that are conditional now have a "+" in their brown circle at start of line
16) remove unsused "Using" statemnts... Right Click file - Remove unused using is a choice
17) Watch Window - can have 4 instances of watch windows up at 1 time, can change values of items your watching as your code is running
18) Datatips - Can change values of items as you hover over them
19) Immediate window
20) Recording Macros -- Tools-Macros-record temporary macro

No comments: