IDE Tips and Tricks @ 502

Class View

  • CTL-W-C: Switches to Class View (all tabs have a CTL-W prefixed shortcut)
  • If you drag a base class from Project References Node in the Class View you can visualize the Framework. This is a good way to just explore.
  • New Search pane in Class View
  • F12 takes you to the definition of the selected class (either from the Class View or actually in code)

Navigation

  • CTL-M: Collapse regions, CTL-O: UnCollapse (open) all regions
  • CTL-M,CTL-M will expand or collapse the selected region
  • CTL-SHIFT-Minus, CTL-SHIFT-Plus goes to the beginning or end of a current bracketed area (CTL-& also does this)
  • SHIFT-F12: Find all references (F8 then moves you through the reference list brought up)

Modifying Code (in VSTS)

  • Right click a tab: close everything but this
  • How do you know when you should refactor? Right click project, select properties. On the Code Analysis Tab you will se Naming and maintainability. Then select Build|Run Code Analysis. The resultant list should give you some hints.
  • F2 in solution view to rename, and VS will notify you that that is different than the internal class name. It will automatically refactor that class name for you.
  • CTL-R,CTL-M: extract method from selected code.

Writing Code

  • Code Snippets. Once you write out the word and press tab the code is inserted.
  • New "dim" snippet helps you with declarations so you only have to type the type once (just like VB).
  • Snippet files follow a simple XML format
  • CTL-K,CTL-S for insertion expansion that surrounds selected code
  • CTL-. opens up the smart-tag menu that will allow you to create a method stub for methods that you call but haven't written yet.
  • Intellisense completion can be configured to ignored when you hit space.

Tags: []

posted @ Thursday, September 15, 2005 2:28 PM

Print

Comments on this entry:

No comments posted yet.

Your comment:



 (will not be displayed)


 
 
 
 
 

Live Comment Preview:

 
«November»
SunMonTueWedThuFriSat
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345