Sign in
The Ultimate Visual Studio Tips and Tricks Blog
by Zain Naboulsi
Browse by Tags
MSDN Blogs
>
The Ultimate Visual Studio Tips and Tricks Blog
>
All Tags
>
edit
Tagged Content List
Blog Post:
Jump to the Top or Bottom of the Current View in the Editor
zainnab
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...
on
18 May 2010
Blog Post:
Using the Undo and Redo Stack
zainnab
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...
on
11 Apr 2010
Blog Post:
Cut or Delete the Current Line
zainnab
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...
on
4 Apr 2010
Blog Post:
Cut, Copy, and Paste Collapsed Code with Outlining
zainnab
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...
on
21 Mar 2010
Blog Post:
Turn Off the Selection Margin
zainnab
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...
on
20 Mar 2010
Blog Post:
Turn Off or On Outlining
zainnab
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...
on
19 Mar 2010
Blog Post:
Collapsing or Expanding All Your Code with Outlining
zainnab
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...
on
17 Mar 2010
Blog Post:
Expanding Your Code with Outlining
zainnab
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...
on
16 Mar 2010
Blog Post:
How to Convert Tabs to Spaces and Vice Versa
zainnab
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...
on
14 Mar 2010
Blog Post:
Reuse the Same Editor Window When Opening Files
zainnab
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...
on
10 Mar 2010
Blog Post:
Go To a Line Number
zainnab
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...
on
8 Mar 2010
Blog Post:
Navigate Backward and Navigate Forward
zainnab
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...
on
1 Mar 2010
Blog Post:
Understanding Virtual Space
zainnab
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...
on
28 Feb 2010
Blog Post:
Understanding Word Wrap
zainnab
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...
on
27 Feb 2010
Blog Post:
Insert File As Text
zainnab
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...
on
24 Feb 2010
Blog Post:
Undo and Redo Global Actions
zainnab
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...
on
23 Feb 2010
Blog Post:
JavaScript Code Snippets
zainnab
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...
on
17 Feb 2010
Blog Post:
HTML Code Snippets
zainnab
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...
on
16 Feb 2010
Blog Post:
Using the New IntelliSense: Pascal Case
zainnab
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...
on
9 Feb 2010
Blog Post:
Using the New IntelliSense: Keywords
zainnab
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...
on
8 Feb 2010
Blog Post:
Guidelines, a hidden feature for the Visual Studio Editor
zainnab
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...
on
1 Feb 2010
Blog Post:
Open a file's location from the File Tab
zainnab
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!
on
31 Jan 2010
Blog Post:
Copy a file's full path from the File Tab
zainnab
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!
on
30 Jan 2010
Blog Post:
IntelliSense Suggestion Mode
zainnab
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...
on
22 Jan 2010
Blog Post:
Using Generate from Usage
zainnab
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...
on
21 Jan 2010
Page 1 of 2 (35 items)
1
2