Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97387

How to jump to the other side of selection in vscode?

$
0
0

I am looking for a method in VSCode to move the cursor to the other side of (one or multiple) selected region(s). This action is similar as the command 'o' in vim visual mode. I searched through the docs and gitgub issues of vscode. It seems no vscode builtin action can do it directly.

I'm using OS X, so I tried to set Cmd+Space as a system shortcut to do this following this answer. This solution works on my Mojave system for many applications in OS X, like Safari, TextEdit. However, it doesn't work in VSCode. In VSCode, after press Cmd+Space, nothing happens to the cursor, the selected text and the unselected text.

I wonder if is possible to use the vscode extension "macros" to do it. This extension allows to define a customer command composed of serial of vscode builtin commands. Yet I can't figure out which command serial can move the cursor to the other side of selected region(s)?


Viewing all articles
Browse latest Browse all 97387

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>