Currently it's a small pain to do End,;,Enter when I need to put a semicolon at the end of a line when the cursor is somewhere in the middle. The optimal in my opinion would be to do Ctrl+; to put a semicolon at the end of the current line and immediately after press Ctrl+Enter as it would be language agnostic.
Any way I could achieve this functionality? Improvements to the workflow are also welcome.
I'm sure you could cook something up with
runCommands. Ex. (in keybindings.json, which you open withPreferences: Open Keyboard Shortcuts (JSON)in the command palette):I wish
cursorUndoorworkbench.action.navigateBackInEditLocationscould be used to move the cursor back to the pre-move-to-end position, but sadly, no (typing kills the cursor history). But courtesy of Mark in the comments, if you want to return to the starting cursor position, you can use this trick: