开发者

Why the region name not printing in Visual Studio 2010 when "hide collapsed region" is selected?

In Visual Studio 2008, when I print code with "hide collapsed region", the print result would include the region header name.

For example, if the code looks like this:

using ...
namespace Foo
{
   #region MyRegion1...

   #region MyRegion2...

   public void SomeAction{}

}

In Visual Studio 2008 print, it looks like:

using ...
namespace Foo
{
    MyRegion1

    MyRegion2

    public void SomeAction()
}

However, in Visual Studio 2010, it looks like:

using ...
namespace Foo
{




    public void SomeAction()
}

Notice that the region name is not printing, but it leaves an empty space. Is this a bug in VS 2010, 开发者_如何学JAVAor it is redesigned to hide the entire region with just a blank space. I can't find any option to change this behavior.


What you describe also happens with my VS 2010 installation. I assume that this is by design (or perhaps by thoughtlessness, although that seems hardly believable, since they included this as a feature through an explicit checkbox option).

FYI, I tried changing this behavior through modifying the printer syntax highlighting settings, but to no avail.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜