Browse by Tags

Tagged Content List
  • Blog Post: Jump to the Top or Bottom of the Current View in the Editor

    Keyboard: CTRL + PgUp; CTRL + PgDn Command: Window.NextTab; Window.PreviousTab Versions: 2008,2010 Published: 5/18/2010 Code: vstipEdit0056 Let's say you are at the bottom of your screen writing some code: But you realize you need to pop up to the top of the screen real quick to correct something. Not...
  • Blog Post: Using the Undo and Redo Stack

    Keyboard: CTRL + Z (undo); ALT + BACKSPACE (undo); CTRL + SHIFT + Z (redo); ALT + SHIFT + BACKSPACE (redo); CTRL + Y (redo) Menu: Edit -> Undo; Edit -> Redo Command: Edit.Undo; Edit.Redo Versions: 2008,2010 Published: 4/11/2010 Code: vstipEdit0045 Download the seriously cool Tip of the Day Extension...
  • Blog Post: Cut or Delete the Current Line

    Keyboard: CTRL + L (cut text); SHIFT + DEL(cut text and carriage return); CTRL + X(cut text and carriage return); CTRL + SHIFT + L (delete) Command: Edit.LineCut; Edit.Cut; Edit.Cut; Edit.LineDelete Versions: 2008,2010 Published: 4/4/2010 Code: vstipEdit0038 You can quickly and easily do a cut operation...
  • Blog Post: Cut, Copy, and Paste Collapsed Code with Outlining

    Keyboard: CTRL + M, CTRL + M (toggle outlining expansion) Menu: Edit -> Outlining -> Toggle Outlining Expansion Command: Edit.ToggleOutliningExpansion Versions: 2008,2010 Published: 3/21/2010 Code: vstipEdit0035 When working with Outlining, you can perform many timesaving operations. One of those...
  • Blog Post: Turn Off the Selection Margin

    Menu: Tools -> Options -> Text Editor -> General -> Display Versions: 2008,2010 Published: 3/20/2010 Code: vstipEdit0034 For those that aren't familiar with it, the Selection Margin is the place between line numbers and the outline indicators. It is used to show code changes and to allow...
  • Blog Post: Turn Off or On Outlining

    Keyboard: CTRL + M, CTRL + P (stop outlining) Menu: Edit -> Outlining -> Stop Outlining; Edit -> Outlining -> Start Automatic Outlining Command: Edit.StopOutlining; Edit.OutliningStartAutomaticOutlining Versions: 2008,2010 Published: 3/19/2010 Code: vstipEdit0033 If you don't like the Outlining...
  • Blog Post: Collapsing or Expanding All Your Code with Outlining

    Keyboard: CTRL + M, CTRL + L Menu: Edit -> Outlining -> Toggle All Outlining Command: Edit.ToggleAllOutlining Versions: 2008,2010 Published: 3/17/2010 Code: vstipEdit0031 You can easily collapse or expand ALL your code with Outlining. For example, if you have a bunch of code that is expanded: And...
  • Blog Post: Expanding Your Code with Outlining

    Keyboard: CTRL + M, CTRL + M Menu: Edit -> Outlining -> Toggle Outlining Expansion Command: Edit.ToggleOutliningExpansion Versions: 2008,2010 Published: 3/16/2010 Code: vstipEdit0030 By default, Outlining is enabled in Visual Studio. When you encounter a collapsed area of code like this: You can...
  • Blog Post: How to Convert Tabs to Spaces and Vice Versa

    Menu: Edit -> Advanced -> Tabify Selected Lines; Edit -> Advanced -> Untabify Selected Lines Command: Edit.TabifySelectedLines; Edit.UntabifySelectedLines;Edit.ConvertTabsToSpaces;Edit.ConvertSpacesToTabs Versions: 2008,2010 Published: 3/14/2010 Code: vstipEdit0028 Some people prefer spaces...
  • Blog Post: Reuse the Same Editor Window When Opening Files

    Menu: Tools -> Options -> Environment -> Documents Versions: 2008,2010 Published: 3/10/2010 Code: vstipEdit0027 Normally, when you open up a new document it creates a new tab: Default (before): Default (after): But if you go to Tools -> Options -> Environment -> Documents and check...
  • Blog Post: Go To a Line Number

    Keyboard: CTRL + G Menu: Edit -> Go To Command: Edit.GoTo Versions: 2008,2010 Published: 3/8/2010 Code: 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...
  • Blog Post: Navigate Backward and Navigate Forward

    Keyboard: CTRL + -; CTRL + SHIFT + - Menu: View -> Navigate Backward; View -> Navigate Forward Command: View.NavigateBackward; View.NavigateForward Versions: 2008,2010 Published: 3/1/2010 Code: vstipEdit0024 The editor remembers locations when you move in a single command more than several lines...
  • Blog Post: Understanding Virtual Space

    Menu: Tools -> Options -> Text Editor -> All Languages -> General -> Settings Versions: 2008,2010 Published: 2/28/2010 Code: 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...
  • Blog Post: Understanding Word Wrap

    Keyboard: CTRL + E, CTRL + W Menu: Edit -> Advanced -> Word Wrap; Tools -> Options -> Text Editor -> All Languages -> General Command: Edit.ToggleWordWrap Versions: 2008,2010 Published: 2/27/2010 Code: vstipEdit0022 When you turn on Word Wrap it will automatically make sure your text...
  • Blog Post: Insert File As Text

    Menu: Edit -> Insert File As Text Command: Edit.InsertFilesAsText Versions: 2008,2010 Published: 2/24/2010 Code: 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...
  • Blog Post: Undo and Redo Global Actions

    Menu: Edit -> Undo Last Global Action; Edit -> Redo Last Global Action Command: Edit.UndoLastGlobalAction; Edit.RedoLastGlobalAction Versions: 2008,2010 Published: 2/23/2010 Code: vstipEdit0020 Everyone knows about Undo and Redo but did you know there are Global versions of these actions on the...
  • Blog Post: JavaScript Code Snippets

    Keyboard: CTRL + K, CTRL + X Menu: Edit -> IntelliSense -> Insert Snippet Command: Edit.InsertSnippet Versions: 2010 Published: 2/17/2010 Code: vstipEdit19 Want to get those JavaScript functions created more quickly? We now have support for JavaScript snippets! When you are inside any script block...
  • Blog Post: HTML Code Snippets

    Keyboard: CTRL + K, CTRL + X Menu: Edit -> IntelliSense -> Insert Snippet Command: Edit.InsertSnippet Versions: 2010 Published: 2/16/2010 Code: 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...
  • Blog Post: Using the New IntelliSense: Pascal Case

    Keyboard: CTRL + J Menu: Edit -> IntelliSense -> List Members Command: Edit.ListMembers Versions: 2010 Published: 2/9/2010 Code: 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...
  • Blog Post: Using the New IntelliSense: Keywords

    Keyboard: CTRL + J Menu: Edit -> IntelliSense -> List Members Command: Edit.ListMembers Versions: 2010 Published: 2/8/2010 Code: 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...
  • Blog Post: Guidelines, a hidden feature for the Visual Studio Editor

    Versions: 2008,2010 Published: 2/1/2010 Code: vstipEdit0015 So this is the first tip update I have done that has apparently been removed in VS2010. With that said, if you are using Visual Studio 2010 there is an extension, created by Paul Harrington, you can use to have the guidelines: http://visualstudiogallery...
  • Blog Post: Open a file's location from the File Tab

    Command: File.OpenContainingFolder Versions: 2008,2010 Published: 1/31/2010 Code: vstipEdit0014 Need to open the folder one of your files is in? Then Right-Click the File Tab and choose "Open Containing Folder": It will open up the location and you are ready to rock!
  • Blog Post: Copy a file's full path from the File Tab

    Command: File.CopyFullPath Versions: 2008,2010 Published: 1/30/2010 Code: vstipEdit0013 Want to copy the full path of the file you are working with? Just Right-Click the tab for the file and choose "Copy Full Path". You now have the full path in your Clipboard!
  • Blog Post: IntelliSense Suggestion Mode

    Keyboard: CTRL + ALT + Spacebar Menu: Edit -> IntelliSense -> Toggle Completion Mode Command: Edit.ToggleCompletionMode Versions: 2010 Published: 1/22/2010 Code: vstipEdit0012 IntelliSense comes in two modes: Completion and Suggestion. You are already familiar with IntelliSense Completion mode...
  • Blog Post: Using Generate from Usage

    Menu: Edit -> IntelliSense -> Generate -> New Type Command: Edit.GenerateNewType; EditorContextMenus.CodeWindow.Generate.GenerateNewType Versions: 2010 Published: 1/21/2010 Code: vstipEdit0011 I'm a big fan of Test Driven Development (TDD) so I absolutely love this tip as it is a big step toward...
Page 1 of 2 (35 items) 12