Oct 07 2021 09:13 AM
The current feature I use is copy/paste a line, but it inserts the line directly where my cursor is located instead of creating a new line. Editors like VS Code and SSMS already support this.
Repro:
Thanks,
Jon
Oct 25 2021 12:00 PM
Oct 25 2021 12:32 PM
@Alexander Sloutsky
I think my intended outcome is supposed to happen in the OnPaste function, but it's not working maybe? The Copy and Cut functions look like they're getting the full line properly.
// Line 437
bool fullLine = textArea.Options.CutCopyWholeLine && dataObject.GetDataPresent(LineSelectedType);
// Line 440
if (fullLine) {
DocumentLine currentLine = textArea.Document.GetLineByNumber(textArea.Caret.Line);
if (textArea.ReadOnlySectionProvider.CanInsert(currentLine.Offset)) {
textArea.Document.Insert(currentLine.Offset, text);
}
}