4

How do I move to the bottom of a file, top of a file, end of a line and beginning of a line in the Atom text editor (atom.io)?

I can not find any shortcuts for that text editor. Only shortcuts for OSX.

phez1
  • 155
  • 1
  • 1
  • 6

2 Answers2

3

I'll post a few tips here:

  1. Use ctrl+a to select all and then press ↑ to go to the top or ↓ to go to the bottom of the file. For the beginning / end of a line try ctrl-← and ctrl-→ or if it doesn't work try the same with shift or alt.

  2. You can use the vim plugin for atom and this will make all of these (and much more) possible. So with the vim plugin you can use in command mode: gg to go to the top of a file, G to go to the end, $ to go to the end of a line, 0 to go to the beginning of a line, ^ to go to the first non-empty character on a line. Read more about it here.

Hope that helps.

Zanna
  • 69,223
  • 56
  • 216
  • 327
Vlad Tarniceru
  • 1,759
  • 1
  • 15
  • 24
  • 1
    Ctrl-a and then up_arrow works, but ctrl/alt/shift-left_arrow does not work. But never mind, I think I will install the vim plugin, thanks for that! – phez1 Feb 19 '16 at 15:46
3

This applies to almost any text editor:

  • Ctrl + Home go to beginning of the file.

  • Ctrl + End go to end of the file.

  • Home go to beginning of the line.

  • End go to end of the line.

Also, Ctrl + Left / Right arrows jump between words.

For Macbook keyboards use Fn + arrows.

Pablo Bianchi
  • 14,308
  • 4
  • 74
  • 117
  • 1
    Unfortunately the Home and End keys don't exist on a macbook pro keyboard. – NotSimon Jan 18 '18 at 00:06
  • @Simon Tell us if [this](https://www.apple.com/uk/shop/question/answers/readonly/how-can-i-make-the-home-and-end-keys-on-the-apple-extended-keyboard-work-as-line-commands-rather-than-page-commands/Q7HY7K2UFDTUK7J7C?tagName=mac) or [this](https://www.cnet.com/how-to/two-mac-keyboard-shortcuts-for-missing-home-and-end-keys/) help you. – Pablo Bianchi Jan 18 '18 at 02:27
  • Fn + arrow keys do the trick! Thanks! Now just need to re-wire my brain :P – NotSimon Jan 19 '18 at 16:29