mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-15 23:04:09 +02:00
Added more editor keys and commands
This commit is contained in:
parent
a3d8bd492d
commit
d463832168
5 changed files with 217 additions and 87 deletions
|
@ -2291,6 +2291,30 @@ namespace IDE
|
|||
//FinishShowingNewWorkspace();
|
||||
}
|
||||
|
||||
[IDECommand]
|
||||
void DuplicateLine()
|
||||
{
|
||||
var sewc = GetActiveSourceEditWidgetContent();
|
||||
if (sewc != null)
|
||||
sewc.DuplicateLine();
|
||||
}
|
||||
|
||||
[IDECommand]
|
||||
void CommentSelection()
|
||||
{
|
||||
var sewc = GetActiveSourceEditWidgetContent();
|
||||
if (sewc != null)
|
||||
sewc.ToggleComment(true);
|
||||
}
|
||||
|
||||
[IDECommand]
|
||||
void UncommentSelection()
|
||||
{
|
||||
var sewc = GetActiveSourceEditWidgetContent();
|
||||
if (sewc != null)
|
||||
sewc.ToggleComment(false);
|
||||
}
|
||||
|
||||
public Result<void, StructuredData.Error> StructuredLoad(StructuredData data, StringView filePath)
|
||||
{
|
||||
if (mWorkspace.IsSingleFileWorkspace)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue