VS2010 Tips, Tricks and General Coolness
-
Upload
ducas-francis -
Category
Technology
-
view
2.905 -
download
3
description
Transcript of VS2010 Tips, Tricks and General Coolness
VS2010 Tips, Tricks and General Coolness
Ducas FrancisSenior Consultant - Readify
Hi. My name is Ducas. Yes, Ducas. Yes, like Lucas, but with a D. I’m a Gemini. I like long walks on the beach. And writing code. FAST! kthxbai :-)
Who am I
Are you a developer…?
You’re happy when: What was hard is now easy You’re productive Code is maintainable Your team is effective
Developers Should be Happy…
I’ve chosen a few cool things to show you Some of them will be new Others will be old
What’s going to happen…
First up, some old stuff…
VS2008 C# Shortcuts Poster - http://www.microsoft.com/downloads/details.aspx?FamilyID=e5f902a8-5bb5-4cc6-907e-472809749973&displaylang=en
Refactoring support Encapsulate Property, Extract Method, Remove
Parameter, Reorder Params, Rename… Ctrl + R, (something)
Macros Record = Ctrl + Shift + R Playback = Ctrl + Shift + P
Old Stuff…
Now some new stuff…
1 - Templates
Online Templates
A lot more than an empty web site…It even pre-wires the membership, roles and profile providers.
New Web Application Template
It’s really empty…
New Empty Website Template
2 – Deployment & Config Transformation
Publishing
Config Transformations
3 – Multi-Targeting
Uses reference assemblies that contain metadata for .Net Framework implementation
Eliminates performance degradation when switching between versions
What’s new about that…?
4 – Multi-Monitor Support
Floating Code
5 – Code Optimised Web Developer Profile
Why do I need Designer view…?
6 – Code Search
Supports fuzzy search and Pascal cased search
Solution-Wide Search
Call Heirarchy
7 - Smart List Intellisense
Also support fuzzy and Pascal casing
IntelliSense does Search
8 – Code Snippets
Typing “<inp” then tabbing twice…
Gives you an input tag with appropriate attributes that you can tab through
Html Snippets more like in Code
9 - IntelliTrace
Traditional debuggers show you the state of your application at the current time
IntelliTrace runs in the background, recording important events
Allows you to look back at past states of the application where events of interest have been recorded
What is it…?
The effect of a problem might not be noticeable until much later in the run of your application.
Trace files can be created by IntelliTrace or Test Manager and given to developers.
Why…?
10 – Architecture Diagrams
Dependency Diagram
11 – Consume-First Development
Pressing space or tab here accidentally is quite annoying…
Normal IntelliSense…
Ctrl + Alt + Space toggles Consume-First
Can then use Ctrl + . to generate method or class
With Consume-First
12 – Test Impact
Show/Run Calling Tests
Run Impacted Tests
Any questions? Anything else you want to see?
So that’s about it…
ASP.NET 4 & VS 2010 Quick Hits http://www.asp.net/learn ~ 30 videos
His Gu-ness http://
weblogs.asp.net/scottgu/archive/2009/08/25/vs-2010-and-net-4-series.aspx
MSDN http://
msdn.microsoft.com/en-us/vstudio/dd582936.aspx http://
msdn.microsoft.com/en-us/library/bb386063%28VS.100%29.aspx
Resources
thank you :-)email - [email protected]
home - http://duc.asblog - http://blog.duc.as/
twitter - @ducas