Lines between methods in the C# editor (CodeRush/DxCore plugin)
Like most .NET developers, I used to do VB/VBA coding before C# came along. But, one thing I always missed in in the C# code editor was the lines that the VB editor puts between methods. An an avid user of CodeRush and Refactor! Pro, which itself does code structure painting in Visual Studio, I’ve created a DxCore Plugin that draws lines between methods which (IMHO) improves on the ones in the VB code editor.
Here’s a screen shot of it in action:

And here’s the exciting options page:

Even if you’re a VB.NET person you might like to try it to see if it works any better for you than VB’s built-in lines (although I guess you’d need to turn off the built-in method-separating lines somewhere in Tools Options).
The project is hosted on Rory Becker’s DX Core Community Plugins Google Code project, where you can download the source and binaries.
Let me know how you get on with it in the comments :)
16 comments so far
Leave a reply

With Duncan’s permission, I have uploaded the source code for this plugin to Google Code (http://code.google.com/p/dxcorecommunityplugins/).
great job thats exacly what i looking for
Hello
Thanks for this…
G’night
Hi, I got this from google code but I need a way to switch it off periodically. Should I just remove it from the DX Core plugins dir.
PS it’s a really great example of whats possible, thanks.
@preet: Good idea, I’ve added an “Enabled” setting now: http://code.google.com/p/dxcorecommunityplugins/source/detail?r=128
Hi. Does it makes lines also in c++? I am looking for something like this, but I couldn’t find it yet. :(
@Emil: yes it does work in C++ too.
[...] Etwa: [Lines between methods in the C# editor (CodeRush/DxCore plugin) « Duncan Smart’s Weblog] http://blog.dotsmart.net/2008/05/02/…dxcore-plugin/ [Microsoft - Source Code Outliner Power Toy] http://www.codeplex.com/SourceCodeOutliner Der [...]
I’m having an issue getting this to work in DXCore/CR 9.1.3 in C# VS 2008. I followed the d/l instructions and put the DLL it in the correct folder. I restarted VS and still have no separators. The plug-in doesn’t show up in the options dialog under Painting either.
Any idea what would cause this?
Don’t worry, a rebuild of the code from SVN fixed it… looks like it just needed to be recompiled for DXCore 9.1.3(?)
Hey Duncan, I have a contribution on this project from a 3rd party (Increased configurability apparently) and thought you’d be the best one to give it the once over…. Can you mail me (rorybecker@gmail.com) and I’ll pass you a copy :)
Hi, I would like to use this plugin too with VS2008 Prof SP1 and CodeRush Express 3.2. But actually I cannot get it to work. Symptoms:
- will be shown within Plugins section
- will not be shown under Painting
- and, of course, no lines are drawn
Thanks for help. Perhaps a new rebuild is needed as for DXCore version 3.1. …
schue
Replying here also just in case you didn’t get notification of my other responses.
The 2 simplest ways to achieve this are:
1.> Download SourceCode and Rebuild against the 3.2.x dlls
2.> Upgrade to Coderush Xpress version 9.1.x
Hmmm seems there is not a version of CodeRush Xpress available outside of the clientcenter. I’ll ping DevExpress about that.
Ok the official line from DevExpress (or at least what they told me) is….
… “v2009 vol 1 of CodeRush and Refactor Pro is available to our customers. This version is also available as Trial within the DXperience subscription. However, the official version of CodeRush Xpress is still v3.2. We are going to announce v2009 vol 1 a bit later.”
I take this to mean that you should be able to download the DXPerience Trial and install Coderush Xpress 9.1.x from within that
It works now, thank you very much for your assistance.