This extension helps you move your cursor faster.
Features
GOGO: GoGo
cmd: go-go-my-cursor.gogo
recommended shortcut: Ctrl+G
This cmd will move your cursor according to your input:
input | example | behavior for the example
----------------------------------------------
line | 11 | jump to the end of line 11
word | hello | jump to first "hello" in current line
line word | 11 hello | jump to first "hello" in line 11
l word | l hello | jump to first "hello" in current line
r word | r hello | jump to last "hello" in current line
line word | 11 hello | jump to first "hello" in line 11
line l word | 11 l hello | jump to first "hello" in line 11
line r word | 11 r hello | jump to last "hello" in line 11
GOGO: Goto Line
cmd: go-go-my-cursor.gotoline
recommended shortcut: Ctrl+G
Vscode's origin goto line feature will move the page while you are still typing the line number.
For example, if you want to goto 77th line,
Vscode jumps to 7th line after you type 7 and jump to 77th line after you type another 7.
It's so annoying, so I made this extension that you can goto line after pressing the enter.
You can bind "go-go-my-cursor.gotoline" to your Ctrl+G shortcut to replace the original one.
GOGO: Goto Left
cmd: go-go-my-cursor.gotoleft
Search from current cursor position - 1 to the beginning of the file,
and go to the first matched word.
For example,
qbaabaa|baa
^
your cursor is here
Now if you use this cmd to search for word "qbaa", your cursor will move to here
|qbaabaabaa
^
If you search for "baa", your cursor will move to here
qbaa|baabaa
^
GOGO: Goto Right
cmd: go-go-my-cursor.gotoright
Search from current cursor position + 1 to the end of the file,
and go to the first matched word.
For example,
qbaa|baabaa
^
your cursor is here
Now if you use this cmd to search for word "baa", your cursor will move to here
qbaabaa|baa
^
because this cmd will search the word from (cursor pos + 1);
GOGO: Goto Left Bracket Outer
GOGO: Goto Right Bracket Outer
cmd: go-go-my-cursor.gotoleftbracketouter
cmd: go-go-my-cursor.gotorightbracketouter
recommended shortcut: Alt+[
recommended shortcut: Alt+]
Move the cursor to the position after the bracket.
Currently, this extension takes these chars as brackets: '"\{}()<>[]
For example,
aa{b|b}cc
^
your cursor is here
If you use the left command,
aa|{bb}cc
^
your cursor will go to here
If you use the right command,
aa{bb}|cc
^
your cursor will go to here