vs2010 tips, tricks and general coolness

42
VS2010 Tips, Tricks and General Coolness Ducas Francis Senior Consultant - Readify

Upload: ducas-francis

Post on 13-Dec-2014

2.905 views

Category:

Technology


3 download

DESCRIPTION

Presented at Canberra VS ALM User Group http://canberravsts.org/ on 10 March 2010.Are you looking for an excuse to move to Visual Studio 2010? Do you simply want to know how to make the most out of an amazing new IDE? This presentation will show you how some of the cool new features in the latest release of VS2010 can help you increase your productivity as a developer.

TRANSCRIPT

Page 1: VS2010 Tips, Tricks and General Coolness

VS2010 Tips, Tricks and General Coolness

Ducas FrancisSenior Consultant - Readify

Page 2: VS2010 Tips, Tricks and General Coolness

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

Page 3: VS2010 Tips, Tricks and General Coolness

Are you a developer…?

Page 4: VS2010 Tips, Tricks and General Coolness

You’re happy when: What was hard is now easy You’re productive Code is maintainable Your team is effective

Developers Should be Happy…

Page 5: VS2010 Tips, Tricks and General Coolness

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…

Page 6: VS2010 Tips, Tricks and General Coolness

First up, some old stuff…

Page 7: VS2010 Tips, Tricks and General Coolness

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…

Page 8: VS2010 Tips, Tricks and General Coolness

Now some new stuff…

Page 9: VS2010 Tips, Tricks and General Coolness

1 - Templates

Page 10: VS2010 Tips, Tricks and General Coolness

Online Templates

Page 11: VS2010 Tips, Tricks and General Coolness

A lot more than an empty web site…It even pre-wires the membership, roles and profile providers.

New Web Application Template

Page 12: VS2010 Tips, Tricks and General Coolness

It’s really empty…

New Empty Website Template

Page 13: VS2010 Tips, Tricks and General Coolness

2 – Deployment & Config Transformation

Page 14: VS2010 Tips, Tricks and General Coolness

Publishing

Page 15: VS2010 Tips, Tricks and General Coolness

Config Transformations

Page 16: VS2010 Tips, Tricks and General Coolness

3 – Multi-Targeting

Page 17: VS2010 Tips, Tricks and General Coolness

Uses reference assemblies that contain metadata for .Net Framework implementation

Eliminates performance degradation when switching between versions

What’s new about that…?

Page 18: VS2010 Tips, Tricks and General Coolness

4 – Multi-Monitor Support

Page 19: VS2010 Tips, Tricks and General Coolness

Floating Code

Page 20: VS2010 Tips, Tricks and General Coolness

5 – Code Optimised Web Developer Profile

Page 21: VS2010 Tips, Tricks and General Coolness

Why do I need Designer view…?

Page 22: VS2010 Tips, Tricks and General Coolness

6 – Code Search

Page 23: VS2010 Tips, Tricks and General Coolness

Supports fuzzy search and Pascal cased search

Solution-Wide Search

Page 24: VS2010 Tips, Tricks and General Coolness

Call Heirarchy

Page 25: VS2010 Tips, Tricks and General Coolness

7 - Smart List Intellisense

Page 26: VS2010 Tips, Tricks and General Coolness

Also support fuzzy and Pascal casing

IntelliSense does Search

Page 27: VS2010 Tips, Tricks and General Coolness

8 – Code Snippets

Page 28: VS2010 Tips, Tricks and General Coolness

Typing “<inp” then tabbing twice…

Gives you an input tag with appropriate attributes that you can tab through

Html Snippets more like in Code

Page 29: VS2010 Tips, Tricks and General Coolness

9 - IntelliTrace

Page 30: VS2010 Tips, Tricks and General Coolness

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…?

Page 31: VS2010 Tips, Tricks and General Coolness

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…?

Page 32: VS2010 Tips, Tricks and General Coolness

10 – Architecture Diagrams

Page 33: VS2010 Tips, Tricks and General Coolness

Dependency Diagram

Page 34: VS2010 Tips, Tricks and General Coolness

11 – Consume-First Development

Page 35: VS2010 Tips, Tricks and General Coolness

Pressing space or tab here accidentally is quite annoying…

Normal IntelliSense…

Page 36: VS2010 Tips, Tricks and General Coolness

Ctrl + Alt + Space toggles Consume-First

Can then use Ctrl + . to generate method or class

With Consume-First

Page 37: VS2010 Tips, Tricks and General Coolness

12 – Test Impact

Page 38: VS2010 Tips, Tricks and General Coolness

Show/Run Calling Tests

Page 39: VS2010 Tips, Tricks and General Coolness

Run Impacted Tests

Page 40: VS2010 Tips, Tricks and General Coolness

Any questions? Anything else you want to see?

So that’s about it…