Go To a Line Number

Keyboard:  CTRL + G Menu:  Edit -> Go ToCommand:  Edit.GoToVersions:  2008,2010Published:  3/8/2010Code:  vstipEdit0026   You can go to any line number in your code by simply pressing CTRL + G.  You will get this dialog:   Just type in your desired line number and click OK.  The Cursor will move to the line number you…

10

Navigate Backward and Navigate Forward

Keyboard:  CTRL + -; CTRL + SHIFT + –  Menu:  View -> Navigate Backward; View -> Navigate Forward Command:  View.NavigateBackward; View.NavigateForward Versions:  2008,2010Published:  3/1/2010 Code:  vstipEdit0024     The editor remembers locations when you move in a single command more than several lines away from where you are currently working, or if you edit in…

6

Understanding Virtual Space

Menu:  Tools -> Options -> Text Editor -> All Languages -> General -> SettingsVersions:  2008,2010Published:  2/28/2010Code:  vstipEdit0023     Okay.  Virtual space is a little funky to understand if you aren’t from the Old School.  You see, a loooooong time ago in this galaxy we used to have (and some people still have) editors that…

9

Understanding Word Wrap

Keyboard:  CTRL + E, CTRL + WMenu:  Edit -> Advanced -> Word Wrap; Tools -> Options -> Text Editor -> All Languages -> General Command:  Edit.ToggleWordWrapVersions:  2008,2010Published:  2/27/2010Code:  vstipEdit0022     When you turn on Word Wrap it will automatically make sure your text is always in the visible space.  So if you have a…

0

Insert File As Text

Menu:  Edit -> Insert File As TextCommand:  Edit.InsertFilesAsTextVersions:  2008,2010Published:  2/24/2010Code:  vstipEdit0021     Another classic item that tends to get overlooked in the wake of Snippets and T4 templates is the good, old “Insert File As Text.” feature.  Let’s say you have a chunk of code in a file and you want it in another…

0

Undo and Redo Global Actions

Menu:  Edit -> Undo Last Global Action; Edit -> Redo Last Global Action Command:  Edit.UndoLastGlobalAction; Edit.RedoLastGlobalActionVersions:  2008,2010Published:  2/23/2010Code:  vstipEdit0020   Everyone knows about Undo and Redo but did you know there are Global versions of these actions on the Edit Menu?   By definition, global actions impact multiple files.  Global actions include renaming a class…

4

JavaScript Code Snippets

Keyboard:  CTRL + K, CTRL + X Menu:  Edit -> IntelliSense -> Insert SnippetCommand:  Edit.InsertSnippetVersions:  2010Published:  2/17/2010Code:  vstipEdit19   Want to get those JavaScript functions created more quickly?  We now have support for JavaScript snippets! When you are inside any script block go to Edit -> IntelliSense -> Insert Snippet. on your menu bar (CTRL…

2

HTML Code Snippets

Keyboard:  CTRL + K, CTRL + X Menu:  Edit -> IntelliSense -> Insert SnippetCommand:  Edit.InsertSnippetVersions:  2010Published:  2/16/2010Code:  vstipEdit0018   You may have used code snippets for a while now but did you know we now support them for HTML?  Yes we do!  Just go into any webpage and then go to Edit -> IntelliSense ->…

2

Using the New IntelliSense: Pascal Case

Keyboard:  CTRL + J Menu:  Edit -> IntelliSense -> List Members Command:  Edit.ListMembersVersions:  2010Published:  2/9/2010Code:  vstipEdit0017   Now this one is seriously awesome!  Have you ever been in a situation where you wanted to use IntelliSense to get a method but there are a TON of methods that start with same word and you have…

6

Using the New IntelliSense: Keywords

Keyboard:  CTRL + J Menu:  Edit -> IntelliSense -> List Members Command:  Edit.ListMembersVersions:  2010Published:  2/8/2010Code:  vstipEdit0016 The one feature we regularly use more than just about anything else in Visual Studio is IntelliSense.  It has been our friend for many years.  Well it just got more friendly!  To show you the new feature, let’s take…

3