all groups > visual studio .net ide > march 2004 >
You're in the

visual studio .net ide

group:

Extending C++ Outlining using IDE extensibility


Extending C++ Outlining using IDE extensibility Eric Fortier
3/30/2004 7:59:46 AM
visual studio .net ide:
I wan wondering if it was possible to extent the outlining using the
extensibility feature of the IDE.

I've been looking at the CodeFunction object, but as of yet I can't
locate anything that has to do with outlining.

Baically I would like to be able to collapse all functions but retain
the state of outlining inside the function. That way a source file
is easier to read.

Thanks!

--Eric

Re: Extending C++ Outlining using IDE extensibility Bill
4/8/2004 12:05:28 PM
Unfortunately, there is no model of outlining regions. The code model and
editor model let you navigate between them readily by getting the text
locations of the start and end of code elements or asking what type or
member contains a textpoint. I suspect there is no work around for you
task. You could collapse all outlining, but that would lose the current
function's outlining state. You could walk the code elements in the file,
move the editor's TextSelection to each one and invoke the expand/collapse
command, but there's no way to inspect the state of outlining (and the
screen would jump around as this macro executed).

I've seen some other requests for modeling outlining and #region sections,
so I'll at least tell the team that owns this stuff that interest in this
area continues to grow.

Bill


[quoted text, click to view]

Re: Extending C++ Outlining using IDE extensibility Graeme Prentice
4/10/2004 10:41:31 AM
[quoted text, click to view]

Thanks. I'm interested too.

Re: Extending C++ Outlining using IDE extensibility Kresimir
4/13/2004 10:24:34 PM
[quoted text, click to view]


outlines are fully controllable via VSIP


--Kresimir
AddThis Social Bookmark Button