On Sat, Sep 11, 2010 at 6:36 PM, Greg Keogh <[email protected]> wrote:
> Folks, I just noted that Visual Studio 2010 has changed the way C# XML doc 
> comments are
> coloured in the editor window. In VS2008 the XML doc background colour filled 
> all the way to
> the right. In VS2010 it now fits to the foreground text (first sample). I 
> much preferred the old
> way, as I would set the background colour to something distinctive (green in 
> this case) and
> it made a nice visual separator between the methods. You would see a “block 
> of colour” between
> methods. This visual “block of separation effect” is now weakened and it all 
> looks jagged.

[...]

> I personally think that a visual clue to separation of code blocks in large 
> source files is important. VB used
> to have the separator line, which I quite liked, but it would abut the last 
> code line and look a bit ugly.

You can use Regions for this purpose (highlighting areas of code).
Perhaps you know about them, but just incase, like so:

#region *  Some component                      *
#endregion

Of course, it could be argued that having too much code in any given
file is indicative of underlying flaws; but this argument may not
always be legitimate. Worth thinking about though.


> Greg

--
silky

http://dnoondt.wordpress.com/

"Every morning when I wake up, I experience an exquisite joy — the joy
of being this signature."

Reply via email to