vs2010 tips, tricks and general coolness

Post on 13-Dec-2014

2.906 Views

Category:

Technology

3 Downloads

Preview:

Click to see full reader

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

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…

thank you :-)email - ducas.francis@readify.net

home - http://duc.asblog - http://blog.duc.as/

twitter - @ducas

top related