1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-15 14:54:09 +02:00

Collapsible regions (aka outlining aka code folding)

This commit is contained in:
Brian Fiete 2022-02-28 11:27:12 -08:00
parent 3dd4212ccd
commit 90735e3bf8
21 changed files with 2518 additions and 277 deletions

View file

@ -2583,6 +2583,30 @@ namespace IDE
#endif
}
[IDECommand]
public void UndoFill()
{
var documentPanel = gApp.GetLastActiveDocumentPanel();
if (var sourceViewPanel = documentPanel as SourceViewPanel)
{
int count = 0;
for (int i < 400)
{
for (char8 c = 'A'; c <= 'Z'; c++)
{
String str = scope .(32);
if (count++ % 131 == 0)
str.Append("\n//");
str.Append(c);
sourceViewPanel.mEditWidget.mEditWidgetContent.mData.mUndoManager.[Friend]mSkipNextMerge = true;
sourceViewPanel.mEditWidget.mEditWidgetContent.InsertAtCursor(str);
}
}
}
}
[IDECommand]
public void SetVal(String valName, String value)
{