Miller on DNR TV -- Intelligent Code Generation in Visual Studio with CodeRush

I'm deep in code and surfacing briefly only to mention this DNR TV session I recorded with Carl Franklin. The session gives you a taste of how to create language-independent intelligent code generators inside Visual Studio that work with CodeRush or CodeRush Xpress. For anyone who prefers watching a movie over reading DXCore plug-in tutorial blog posts, this one's for you:

For developers interested in creating refactorings instead of code providers, just drop a RefactoringProvider onto your form instead of the CodeProvider -- all other steps remain the same.

Note: The source is available as a link at the bottom of the DNR TV page. This source includes extension methods for anyone working in a version of CodeRush earlier than 9.27. If you're using 9.27 or higher, those extension methods are redundant. Check out the source even if you watch and follow the video, because it includes additional functionality not covered in the video.

Free DevExpress Products – Get Your Copy Today

The following free DevExpress product offers remain available. Should you have any questions about the free offers below, please submit a ticket via the DevExpress Support Center at your convenience. We’ll be happy to follow-up.
Przemyslaw Soszynski

Hi Mark,

I am trying to follow your great presentation on DNR tv. However, I just got stuck when you started using the Is method on the DevExpress.CodeRush.StructuralParser.Expression type. I just do not see it being implemented. There is a whole bunch of methods on this type that start with Is, like IsIdentifier or IsRelatedTo, but I just  don't see "Is" itself. It is also not part of the DevExpress.CodeRush.StructuralParser.InitializedVariable type. Am I missing somehting here?


10 October 2009
Mark Miller (DevExpress)
Mark Miller (DevExpress)

Hi Przemek,

Yes, you are missing something. You either need a CodeRush 9.27 or greater (9.27 should available as a daily build now), or you need the extension methods available in the source code. Take a look at the link to the source above (in my original blog post).

13 October 2009
uberVU - social comments

This post was mentioned on Twitter by devexpress: Blog: Miller on DNR TV -- Intelligent Code Generation in Visual Studio with CodeRush: I'm deep in code..

20 October 2009

Please login or register to post comments.