Scott Cate ScottCate EventDaycom Dustin Campbell dcampbell Microsoft DEVB321 Agenda Get the most out of Visual Studio Better Faster Code Tricks Fun Facts Bets with Friends ID: 759610
Download Presentation The PPT/PDF document "Visual Studio Power User: Tips & Tri..." is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.
Slide1
Slide2Visual Studio Power User: Tips & Tricks
Scott Cate (@ScottCate)EventDay.comDustin Campbell (@dcampbell)Microsoft
DEV-B321
Slide3Agenda
Get the most out of Visual
Studio
Better / Faster / Code Tricks / Fun Facts / Bets with Friends
Why are you here?
Everyone will learn something
If one tip saves one minute per hour
Do some fuzzy math and ….
Every tip will save you 1 year of coding
Retire Today
!
Slide4Lay of the Land
We’re
gonna
go fast, but shortcuts are in the slides
We’re using Visual Studio 2013
Many tips are relevant to earlier versions of Visual Studio
Visual Studio version “legend”:
[05]
Visual Studio 2005
[08]
Visual Studio 2008
[10]
Visual Studio 2010
[10PPT]
Visual Studio 2010 + Pro Power Tools
[12]
Visual Studio 2012
[13]
Visual Studio 2013
[
13PPT]
Visual Studio 2013 + Pro Power Tools
Slide5http://sc8.me/useazureDevelop & test solutions in the cloudGet started with Azure now using monthly credits included with your MSDN subscription (up to $150/month)Quickly create a dev/test sandbox using Azure Virtual Machines and your MSDN softwareNeed more resources? MSDN subscribers payonly $0.06 per hour for additional small VMsa 33-97% savings
Your MSDN + Azure Benefits
Slide6Start Page
Show page on startup
[10]
Close page after project load
[10]
Pin or remove items in “Recent” list
[10]
Windows 7 and 8 Taskbar Magic
Pin recent projects
[10]
Show Jump List
(
Win+Alt
+
n
)
Start new instance
(
Win+Shift
+
n
)
Start new instance as admin
(
Win+Shift+Ctrl
+
n
)
Toggle instances
(Win +
n
)
Toggle instances
(without Aero Peek)
(
Win+Ctrl
+
n
)
Slide7Simplification
UX Refresh
[12]
Light/dark themes
[12]
Toolbar simplification
[12]
Retake your theme
Blue
theme is back!
[
13]
Visual
Studio Color Theme Editor
[12]
Hide Main Menu
[12]
Slide8Window and Document Management
Pinned document tabs
[10PPT]
Move/Dock in Windows 7 and 8
(Win + <arrow key>)
Float/Dock in Visual Studio
[10PPT]
(Ctrl + Double Click)
Preview Tab
[12]
Split or create new window
[05] [12.VB]
Close All Documents
[12]
Close All Documents but Pinned
[12]
Close All Documents but This
[10
]
Cycle Tool Windows
[05]
(Alt + F6
and
Shift + Alt + F6)
Focus Tool Window Toolbar
[05]
(Shift + Alt)
Close Tool (And Document) Window(s)
[12]
(Shift +
Esc)
Slide9Search
Quick Launch
[10PPT]
(Ctrl + Q)
Use @ prefix to filter search (e.g. @opt)
Visual Studio Windows
Solution Explorer
[10PPT]
(Ctrl + ;)
Team Explorer
[12]
(Ctrl + ')
Error List
[12]
Toolbox
[12]
Reference Manager
[10PPT]
(Ctrl + E)
New Project/File
[10]
(Ctrl + E)
Slide10Solution Explorer
Drill down into types and members
[10PPT]
Multi-instancing
[10PPT]
Pivots
[10PPT]
Collapse projects
[12]
Track Active Item in Solution Explorer
[08]
Sync to Active Document
[12]
(Ctrl + [, S)
Filters
[12]
Pending Changes
Open Files
Slide11Navigation
Simplified Navigation
[05]
(Ctrl + -
and
Ctrl+Shift
+ -)
Go to Definition
[05]
(F12)
Inline
Peek
[13
]
(Alt+ F12)
Find All References
[05]
(Shift + F12)
Metadata as Source
[05]
(
C# only
)
Code Definition Window
[05]
(
C# only
)
Iterate List Window (e.g. Find Results)
[05]
(F8)
Navigate To
[10]
(Ctrl + ,)
Activate Open File
[05]
(Ctrl + Alt + Down)
Enhanced
Scroll Bar
[13]
[
10PPT]
Slide12Code Editor Tricks
Zoom
[10]
(
Ctrl+Shift
+ </>
or
Ctrl + Mouse Scroll)
Multiline Editing
[10]
(
Alt+Shift
+ Up/Down
or
Alt + Mouse Up/Down)
Move Line Up/Down
[13
]
[
10PPT]
(
Alt + Up/Down)
Find
[10PPT]
(Ctrl + F)
Highlight References
[10]
(
Ctrl+Shift
+ Up/Down)
Background Error
Squiggles
[05.VB] [08.C#]
Call Hierarchy
[05.C++] [10.C#] [12.VB]
(Ctrl + K, T)
Clipboard Ring
[05]
(
Ctrl+Shift
+ V)
Slide13Writing Code
IntelliSense
Filtering
[10]
(Substring and Camel Case)
Suggestion mode
[10]
(
Ctrl+Alt
+ Space)
Smart
Tags
[05]
(Ctrl + .)
Rename
[05]
Generate from Usage
[10]
Add Using/Import
[05.C#] [08.VB]
Error Corrections
[05.VB]
Code Snippets
[05]
IntelliSense Expansion
(Double <tab>)
Insert Snippet
(Ctrl + K, X and ?<tab> in VB)
Show/Hide Snippet Highlights
[08.VB]
Organize/Sort
Usings
[08.C#] [10PPT.VB]
Automatic
Brace Completion
(TAB)
[13] [10PPT]
Project context switch for linked files
(Ctrl + F2)
[13] [10PPT]
Slide14Debugging
Breakpoint Name / Group [
On|Off
] / Export / Import
[10]
Trace Points
[05]
DataTips
[05]
Pin and Persist DataTips
[10]
Adjust DataTip Transparency
[05]
(Ctrl + F10)
Debugger Visualizers
[05]
Run to Cursor
[05]
(Ctrl + F10)
Step Into Specific
[08]
(
Shift+Alt
+ F11)
Set Next Statement
[05]
(Ctrl + F10)
Managed Return
Values
(Autos Window)
[13]
IntelliTrace
™ – Back in Time
[10]
Slide15Temporary Projects
Quick Code
Samples
Throw Away Code
Keep Hard Drive clean
Save if you want
No Solution Support
Single Projects
Only
Slide16Layer Diagrams
Compiler uses Access Modifiers
The Validation Check, for Business Rules
Layers use Visual Boundaries
Assembly
Namespace
Even Class Specific
It Compiles, but it’s still wrong!
Slide17http://ScottCate.com/Tricks
Video Blog
100’s of Visual Studio Tips and Tricks
Community Project
Slide18DEV-B413: General Assembly C, 5 – 6:15pm
Related content
Slide19Visit the Developer Platform & Tools Booth
Having a
friend buy your coffee?Yea, it’s kind of like that.MSDN Subscribers get up to $150/mo in Azure credits. Stop by the Developer Platform and Tools booth and visit the MSDN Subscriptions station to activate your benefits and receive a gift!http://aka.ms/msdn_teched
3 Steps to New
Gear! With
Application Insights
Create a Visual Studio Online account
http://visualstudio.com
Install Application Insights Tools for Visual
Studio Online
http://aka.ms/aivsix Come to our booth for a t-shirt and a chance to win!
VSIP QR Tag
Contests
Visit our booth to join the hunt for cool prizes!
Slide20Resources
Microsoft Engineering Stories
How Microsoft Builds Softwarehttp://aka.ms/EngineeringStories
Visual Studio
Industry Partner Program
Meet Our New Visual Studio Online Partners or Join Now.http://vsipprogram.com
Visual Studio | Integrate
Create Your Own Dev Environment
http://integrate.visualstudio.com
Development tools & services
for
teams of all sizes
http://www.visualstudio.com
Slide21Complete an evaluation
and enter to win!
Slide22Evaluate this session
Scan this
QR code to evaluate this session.
Slide23©
2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.