Microsoft Dynamics Ax developer's blog

Monday, April 09, 2012

Code folding in ax 2012

As mentioned Martin Drab, editor extensions for VS 2010 work also in Ax 2012. Including code outlining example. Below is CustVendSettle.settleNow, lines 111 to 777:

10 comments:

Archy said...

Hi,

No success for me. Brace matching is working, but not a code folding.
May be Ihave missed something.
What should be additional done to make my editor working with a "code folding"?

Archy said...

Hi,

It migth be I am missing something, but I am with no success.
Brace matching is working perfectly, but code folding doesnt.
I have just put dll into editors directory.
Is there anything I have to do additional?

Max Belugin said...

I don't know - does in work in VS?

Archy said...

Yes that is working and always worked.
But how you achived that in AX editor it is working (I see it in the screen).
I thought importing dll into Editor folder is enough?
Did you do something additional?

Max Belugin said...

nothing special, just copied to C:\Program Files (x86)\Microsoft Dynamics AX\6.0\Client\Bin\EditorComponents

Archy said...

Did you import Goshoom.AxBraceMatching.dll only?
This one enable brace matching in X++ editor, but I cannot achive code folding inside X++ editor.

Max Belugin said...

No, for the code folding you should go thrugh steps of the code outlining example, build dll and place to the editor components folder.

Enver YILMAZ said...

MSDN example folds "[" and "]". You should modify startHide and endHide variables in OutliningTagger class to folds between "{" and "}".

Антон Казарновский said...

Can you share a dll for code folding

Max Belugin said...

http://ax2012editorext.codeplex.com/