In most editors (including Visual Studio proper), I can use Shift+End to select all of the text from the cursor location to the end of the current line, and Shift+Home to select all text up to the beginning of the line.
These shortcuts don't seem to work out-of-the box (at least, on the Mac version). Is there some way to enable this, perhaps with a plugin or a setting I'm missing?
Mine is Visual Studio Code and the exact command for this is "Add cursors to line ends". The shortcut key is Alt + Shift + I (Windows) or Command + Shift + l (Mac).
The quickest way to get your cursor to the first or last line of the file is pressing Ctrl + Home (Mac: Control + Home ) to go the beginning and Ctrl + End (Mac: Control + End ) to go to the end.
On Windows: Shift + Alt + Up/Down. On Mac: Shift + Option + Up/Down. On Ubuntu: Ctrl + Shift + Alt + Up/Down.
Strange it should work out of the box. If not, go to File > Preferences > Keyboard Shortcuts and look for cursorEndSelect
.
{"key": "shift+end", "command": "cursorEndSelect", "when": "editorTextFocus"}
I use following inbuilt shortcut (VSCode 1.39.2, MacOS 10.15)
⌘ Command + ⇧ Shift + → Right Arrow key combination
You can access keyboard shortcut reference here: https://code.visualstudio.com/shortcuts/keyboard-shortcuts-macos.pdf
You can visit this link anytime from VS Code by navigating to
Help > Keyboard Shortcuts Reference
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With