22
Extend Visual Studio 2010 Presented by Robert MacLean @rma

Extend Visual Studio 2010

  • View
    1.582

  • Download
    1

Embed Size (px)

DESCRIPTION

Customizing Visual Studio has never been easier and is often overlooked as a potential development time-saver! Visual Studio supports a number of quick ways to extend without any code and when task gets tougher the addition of Managed Extensibility Framework (MEF) and the new VSIX packaging model allows code based solutions to be easily developed! Come to this demo-heavy session to see how you can take advantage of the different forms of extensibility and use them to improve your Visual Studio experience.

Citation preview

Page 1: Extend Visual Studio 2010

Extend Visual Studio 2010Presented by Robert MacLean @rmaclean

Page 2: Extend Visual Studio 2010

Assumptions of this talk

Level 200Assume you have used VSAssume you are a developer

Page 3: Extend Visual Studio 2010

Agenda

What extending means? Where it goes beyond configuration!

Start at level 100Snippets (little demo) & Templates (little demo)

Move to level 200MEF (little demo)

Finish off in level 300ishExtensions (big demo)Add-ins (little demo)

Page 4: Extend Visual Studio 2010

Not covered today

Diagram & Arch extensionsRequires UltimateUML - Just XML additionsArch tools - MEF

Page 5: Extend Visual Studio 2010

Problem

Often typing the same code over and over againComplex patterns hard to remember

Page 6: Extend Visual Studio 2010

Demo

Snippets: How to use and how they work

Shortcut fail

Page 7: Extend Visual Studio 2010

Snippet Summary

Simple reusable chunks of codeSnippet manager for sharing Designer exists

Page 8: Extend Visual Studio 2010

Problem

Often typing the same code over and over againSet up on new work is time consumingI wish everyone on my team did things correctly from the startComplex patterns hard to remember

Page 9: Extend Visual Studio 2010

Demo

Project Templates

Page 10: Extend Visual Studio 2010

Template Summary

Easy to build solutions to save some timeSimple, too simple, deployment modelMicrosoft extension for making VSIX easilyVERY extensible with the wizard interface

Page 11: Extend Visual Studio 2010

Problem

Need a way to loosely couple together components at runtime

Page 12: Extend Visual Studio 2010

Demo

Managed Extensibility Framework

Page 13: Extend Visual Studio 2010

MEF Summary

Way to compose parts, like plugins or addinsPARTS of Visual Studio support this

Page 14: Extend Visual Studio 2010

Problem

Need to enhance the Visual Studio IDESyntax highlighting for my new languageWant to do some visual cues to improve productivity

Page 15: Extend Visual Studio 2010

Extension Class Structure

Provider

Tells Visual Studio that this exists and what it is for (classifier)

Definition

Tells Visual Studio that we creating a custom definition

Formatter

How would we like our code to be formatted

Classifier

Tells Visual Studio what text this applies to

Page 16: Extend Visual Studio 2010

Demo

Visual Studio Extensions

Page 17: Extend Visual Studio 2010

Extensions Summary

Awesome for rich experiencesEasy to build – just need to navigate the complex documentationLimited scopeTHIS is the growth point for VS 11

Page 18: Extend Visual Studio 2010

Problem

Need to enhance the Visual Studio IDE beyond extensionsNeed menu items and/or custom tool windowsNeed my own editor

Page 19: Extend Visual Studio 2010

DemoVisual Studio Add-Ins

Page 20: Extend Visual Studio 2010

Add-ins & Packages Summary

FULL power experienceBetter documented (been around longer)

Page 21: Extend Visual Studio 2010

Summary

No CodeWhat you want likely already exists in the gallery!SnippetsTemplates

CodeExtensions powered by MEFAdd-ins are full power

Page 22: Extend Visual Studio 2010

Thank YOU!

Robert MacLeanwww.sadev.co.za (slides + demo scripts)@rmaclean