I can copy an entire line under cursor using the Ctrl+C shortcut. Is it possible to also select this line to visually hint that the line was copied (and also to give the opportunity to remove or edit the line instantly)? That's how it works in CLion, but VSCode just silently copies the line (by default).
use Ctrl+X to remove the line if nothing selected.
to select and copy line if nothing selected create a keybinding
{
"key": "ctrl+c",
"command": "runCommands",
"args": {
"commands": [
"expandLineSelection",
"editor.action.clipboardCopyAction"
]
},
"when": "editorTextFocus && !editorHasSelection"
}
A different selection, but first the copy command:
{
"key": "ctrl+c",
"command": "runCommands",
"args": {
"commands": [
"editor.action.clipboardCopyAction",
"cursorLineEnd",
"cursorLineStartSelect"
]
},
"when": "editorTextFocus && !editorHasSelection"
}