visual studio 2012 secrets
DESCRIPTION
TRANSCRIPT
Visual Studio 2012 Secrets
Verstecktes und Hilfreiches Jörg Krause, www.IT-Visions.de
UI – Solution Explorer
1. Search2. Navigation3. Home4. Filter5. Sync6. Minimize7. Properties8. Preview
UI – Solution Explorer
1. Refresh2. All Files3. Dependency Graph
UI – Solution Navigator
• Navigation into the code structure
UI – Solution Navigation
• Scope to Element
UI – Solution Navigation
• Dependency Graph
UI – Solution Navigation
• Search in Solution
UI – Solution Navigation
• Quick Filter• File Content• File Names
UI – Solution Navigation
• Solution Filter
UI – Solution Navigation
• Active Item Tracking
UI - Suche
• Quick Search• Ctrl-Q
UI - Suche
• Quick Search• Scope Elements (@mru,menu,opt,doc)
UI - Suche
• Direct Search• Ctrl-F• Ctrl-I (incremental)• Type the search term without focus after Ctrl-I (i)
Web – HTML 5 & JavaScript
• HTML 5 IntelliSense• auto detect• JavaScript IntelliSense• JQuery IntelliSense
Web – JavaScript IntelliSense
• Old Method – Include References
• Build Reference Groups, use _references.js
Exte
ndin
g Ja
vaSc
ript I
ntel
liSen
se:
http:
//m
sdn.
mic
roso
ft.c
om/e
n-us
/lib
rary
/hh8
7469
2.as
px
Web - IISExpress
Web – Page Inspector
Code – Code Clone Analyze
• Analyze Analyze Solution for Code Clones
Code – Code Analysis
• Analyze Run Code Analysis• Alt-F11
Code – Code Metrics
• Analyze Calculate Code Metrics• Maintainability• Inheritance• Coupling• Lines of Code
Debugging – Hover Values
• Interactive debugger values in editor
Debugging – Direct Edit
• Directly change values
Debugging – Set Next Step
• Move debugger step up and down
Debugging – Breakpoint Options
• More than just a break point
Debugging – Tracepoints
• Breakpoint Context Menu When hit• Print a message• Continue exec…• {localVariable}• {lv+=newVal}
Debugging – BreakPoint Options
• Label• Export / Import
Debugging – Format Specifier
• Watch, Quick Watch• Name,XXX• ac = Force Evaluation (entfernt das lästige Refresh-Ei, oder TO > Debugging >
General > Enable property evaluation…)• d = decimal• dynamic = Dynamic View• h = hex• nq = No quotes• hidden = show non public members only• raw = raw for proxy objects• results = members of query result for IEnumerable<T>
Debugging – Object ID
• Create #N• Use #N
Debugging – Pseudo Identifier
• C++• $err• $err,hr• $handles, @eax, @rax (64 Bit)
• C#• $exception (in exception only)• $user
Shell – Package Manager
• Nuget.org• Project Enable Nuget Packages Restore
Shell – Package Manager
• Powershell in the box• ipconfig | select-string -pattern 255• get-service | get-member
• Folder• $(get-location)
• .\shell.ps1 eigene Skripte ausführen
Shell – Export Template
• Item• Solution
Editor – Simple Tricks
• Whitespaces: Ctrl-R Ctrl-W• Select Rectangle: Alt + Select• Fast Jump: Ctrl-Click• Go to Definition: F12 (Shift-F12 == all)
• Back from Definition: Ctrl- – / Alt-Left Arrow
• Quick Task: Ctrl-. ENTER• Navigate Symbols: Click, Highlight, Ctrl+Shift+Arrow• Split/New Window (Window Menu)
Editor – Code Store
• Drag Drop Toolbox
Editor – Tasklist
• Tokens:• TODO• HACK• UNDONE
Editor – XML as Code
• Paste XML as Classes• Edit Paste Special
<Customer> <Name /> <Street /> <City /></Customer>
Editor – Clipboard Cycle
• Ctrl-Shift-V• Replacing Paste Operation
Editor – Code Snippets
• Snippet TAB TAB• Surround: Ctrl-K Ctrl-S
Editor – Task Switcher
• Classic View – Jumplists only
Editor – Task Switcher
• Advanced View – Jumplists with Previewreg ADD HKCU\Software\Microsoft\VisualStudio\11.0\General /v ShowThumbnailsOnNavigation /t REG_DWORD /d 1
SQL – Object Explorer
• View SQL Server Object Explorer• Ctrl-^, Ctrl-S
SQL – Stored Procedure Debugger
• Use Object Explorer• Set Breakpoints
SQL – Compare Databases
Extensions – Color Themes
Extensions – Power Tools