Reputation: 1311
In visual studio code there is expandLineSelection
command in keyboard shortcuts to select a whole line, and after trigger this, the cursor is in the next line,
Is there any way to select the whole line but the cursor is at the left most of the line?
Upvotes: 1
Views: 946
Reputation: 182821
Go to beginning of next line (Home) and hit
If you really want it in one command, use the multi-command extension.
Upvotes: 0
Reputation: 28838
You can use extensions multi-command and Select By
Define a keybinding:
{
"key": "alt+k", // or any other combo
"command": "extension.multiCommand.execute",
"args": {
"sequence": [
"expandLineSelection",
"selectby.swapActive"
]
}
}
You can use the same keyboard shortcut as defined for expandLineSelection
Upvotes: 1