Collapse to Definitions request
Author: dan_rozenberg
Creation Date: 11/8/2011 8:38 AM
profile picture

dan_rozenberg

#1
Hello! I would find it quite helpful if there was a way to do in the editor something similar to the Outlining -> Collapse to Definitions in Visual Studio. Is there any way to do it in WL6? I noticed it does the outlining correctly already, so, in the case of automatic collapsing not being available right now, can I request it to be added as a hot-key or context sensitive option in the future??

Thanks!
profile picture

Eugene

#2
The editor is a 3rd party component developed by Quantum Whale:

Editor.NET

Could you please point me at the requested feature on their feature list? tia.
profile picture

dan_rozenberg

#3
My request would fall under the "code outlining" feature, but it's a rather comprehensive feature, and what I was asking about is a small part of the outlining feature, so it doesn't necessarily has to be implemented in order for them to advertise the code outlining feature...

I thought the editor was developed in-house...so I suppose there is not a lot you could do to add new stuff to it... What I was looking for was an automated way to click on all the small "-" (minus) boxes in order to make the code more compact...
profile picture

Eugene

#4
Unless I'm mistaken, Collapse to Definitions seems to be present (any Editor window > Options > Keyboard) but there's no way to activate it. Custom shortcuts and redefining the mapping scheme was disabled so not to interfere with Wealth-Lab's own keyboard shortcut set.
profile picture

dan_rozenberg

#5
Yes, you are correct, I can find it there, but it won't work :(

I see some unused hotkeys in the WL reference (like, for example, Ctrl + N). Would it be simple for you to bind any of those hotkeys to the CollapseToDefinitions function that probably exist in the Editor.Net?

:D
profile picture

Eugene

#6
You can choose to enter a support ticket to track the request, but no promises will be made. One voice won't count. :\
profile picture

WLP123

#7
I could really use this specific feature as well - Has there been any update to this request specifically, or to enabling keyboard shortcuts in the Editor in general?
profile picture

Eugene

#8
If you require more flexible code editing features than the Strategy Editor allows, your best bet is to use the free Visual Studio Community 2017 as shown in the KB article:

How can I debug my trading strategies in Wealth-Lab?

The great thing about this approach is that Edit & Continue (E&C) lets you edit your Strategy code on-the-fly while Wealth-Lab is running.
profile picture

Eugene

#9
@dan_rozenberg

Although Collapse To Definitions (Ctrl-M,O) doesn't work, it's been possible to collapse/expand functions or classes. Disabled by default but can be activated in Editor Options > Advanced > Allow outlining.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).