210 likes | 356 Views
Being Lazy Is An Art Form. Visual Studio Plug-ins with DXCore Zi Makki – http://www.zimakki.com/blog. Agenda. Other ways to extend Visual Studio DXCore Demos writing DXCore plug-ins. Other ways of extending VS. Macros Add-ins and Wizards
E N D
Being Lazy Is An Art Form Visual Studio Plug-ins with DXCore Zi Makki – http://www.zimakki.com/blog
Agenda • Other ways to extend Visual Studio • DXCore • Demos writing DXCore plug-ins
Other ways of extending VS • Macros • Add-ins and Wizards • Visual Studio 2005 SDK (formerly known as the Visual Studio Industry Partner (VSIP) program) • DXCore
Macros • Easy access (if you’re a VB programmer) • Record/Playback • Long load time if VB language service isn’t loaded yet. • I’m not a VB Programmer.
Add-ins and Wizards • More powerful than macros • Wizards to get you started • COM objects that implement the IDTExtensibility2 interface and communicate with the IDE through the core automation object model. • You can implement Add-ins in any COM-consuming language such as Visual C++, Visual Basic, Visual C#, and so forth. • Disadvantages • Limited power • Some classes have poor performance • Some methods are not thread-safe
Visual Studio 2005 SDK (VSIP) • Advantages • Powerful • Low-level • Disadvantages • Steep learning curve • C++ knowledge required to exploit everything • Managed interop assemblies are tied to VS versions • Can’t do basic things, like get mouse & paint events
DXCore • Nearly as powerful as VSIP • Easier than a VS Add-in • Fewer lines of code • Smarter event arguments • Powerful methods and properties • Able to extend Visual Studio like no other: • Flicker-free painting on the editor • Mouse events • Keyboard events • Plug-in binaries work in VS’02, VS’03 and VS’05
The DXCore Manages: Actions Text Expansion Shortcuts Events Context Options Source Model Discoverability DXCore architecture DXCore Visual Studio
Ease vs Power Easy Macros DXCore Add-ins VSIP Power
What you need • What you need to be able to carry out these demos is … • DXCore (FREEEEEE!!!)
Demo agenda • Demo 1: Simple Action • Demo 2: Simple Action with Parameters • Demo 3: Tool bar • Demo 4: Unused variables.
DXCore summary • Super easy to use • Very powerful • Works in VS’02 – VS’05 • FREE DOWNLOAD!!!
DXCore availability • Free Download is here: • http://www.devexpress.com/dxcore • The DXCore is also shipped with: • CodeRush for Visual Studio • http://www.devexpress.com/coderush • Refactor! • http://www.devexpress.com/refactor
Resources • VSIP & Extensibility Model: http://msdn.microsoft.com/vstudio/extend/ • DXCore Download: http://www.devexpress.com/DXCore • DXCore Support Newsgroup: • devexpress.public.dotnet.coderush at news.devexpress.com
DXCore training videos • MSDN: http://shrinkster.com/cqk • dnrTV: http://dnrtv.com/default.aspx?showID=5 • DX TV: • http://www.devexpress.com/CodeRushTraining