Visual Studio 2012 Secrets
Upcoming SlideShare
Loading in...5
×
 

Visual Studio 2012 Secrets

on

  • 1,570 views

 

Statistics

Views

Total Views
1,570
Views on SlideShare
1,570
Embed Views
0

Actions

Likes
0
Downloads
33
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Visual Studio 2012 Secrets Visual Studio 2012 Secrets Presentation Transcript

  • Visual Studio 2012 Secrets Verstecktes und Hilfreiches Jörg Krause, www.IT-Visions.de
  • UI – Solution Explorer1. Search2. Navigation3. Home4. Filter5. Sync6. Minimize7. Properties8. Preview
  • UI – Solution Explorer1. 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 http://msdn.microsoft.com/en-us/library/hh874692.aspx• Old Method – Include References Extending JavaScript IntelliSense:• Build Reference Groups, use _references.js
  • 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 HKCUSoftwareMicrosoftVisualStudio11.0General /vShowThumbnailsOnNavigation /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