E
E
EmmGold2016-01-05 15:41:36
Sublime Text
EmmGold, 2016-01-05 15:41:36

How to jump to the end of a line in Sublime Text 3?

There is code
public static void main(string args[ # ])
.................................................. ...................^cursor
I wrote this code, sublime itself put the closing square and round brackets. I want to put a semicolon at the end of the line. How to do it?
Or type the closing square again, closing the round one again, and only then a semicolon. Which looks a little strange.
Either press Alt + right arrow or, which is the same, take the mouse and place the cursor with an arrow. But these are unnecessary gestures and hands have to be removed from the main keyboard. Of course, if someone does not press the arrows with the right little finger. There is clearly a better way to do this.
Interested in the key combination on the main keyboard. So that this can be done without removing the index finger of the right hand from the "J" key. In order not to be distracted and not to waste time waving your arms.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
E
EmmGold, 2016-01-05
@EmmGold

I found this option for myself
[
{ "keys": ["shift+space"], "command": "move", "args": {"by": "word_ends", "forward": true} },
{ " keys": ["alt+space"], "command": "move", "args": {"by": "word_ends", "forward": false} }
]
You can quickly scroll through all brackets and words. A little not correctly expressed initially in the question, the transition to the end of the line is not always required.
Thanks to all.

S
sunrails, 2016-01-05
@sunrails

End key, no?

A
Alexey Strukov, 2016-01-05
@pm_wanderer

There is a cmd-right_arrow shortcut on the poppy. There is some kind of Windows shortcut
too (alt-right_arrow mentioned by you apparently)
The easiest way in my opinion

O
osorina_irina, 2019-01-28
@osorina_irina

My End button stuck on Windows, so I solved this problem for myself next. like so:
{ "keys": ["shift+space"], "command": "move_to", "args": {"to": "eol", "extend": false} },

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question