I want to jump to the end of a specific line.
When pressing ctrl/cmd + p, typing ":10" and hitting enter, I'm taken to line 10. Is there some setting or way to automatically go to the end of the line without having to use the End key?
Using some macro extension like multi-command or another you need this in your settings:
"multiCommand.commands": [ { "command": "multiCommand.gotoEndOfLine", "sequence": [ "workbench.action.acceptSelectedQuickOpenItem", "cursorEnd", ] } } and some keybinding (in keybindings.json):
{ "key": "alt+right", "command": "extension.multiCommand.execute", "args": { "command": "multiCommand.gotoEndOfLine" }, "when": "inQuickOpen" }, I could not get it to work with Enter or something using Enter, like Shift+Enter - perhaps some conflict I couldn't figure out.
In the demo I use Ctrl+G to open the QuickInput straight to the goto line functionality but it doesn't matter how you get there. Then trigger the macro with your chosen keybinding.
enterkey for a custom keybinding. Would you like to see the macro that you could set for your own, non-enter key, keybinding? LikeAlt+Rightfor example.