如何在Atom编辑器中无需行号跳转到文件最后一行?
How to Jump to the Last Line in Atom Without Knowing the Line Number
Absolutely! Atom gives you a few straightforward ways to jump straight to the end of a file, just like Vim's Shift+G shortcut. Here are the most convenient methods:
Default Keyboard Shortcuts
These work out of the box, no plugins required:
- On Windows/Linux: Press
Ctrl+End - On Mac: Press
Cmd+End
This is a standard shortcut across most text editors, so it’s probably already familiar if you use other tools regularly.
Using the Command Palette
If you prefer navigating via commands (or blank on the shortcut), this works everywhere:
- Open the Command Palette with
Ctrl+Shift+P(Windows/Linux) orCmd+Shift+P(Mac) - Start typing
go to end—you’ll see the "Go to End" command pop up immediately - Select it with your mouse or hit Enter to jump straight to the last line
Vim-Style Shortcut (For Vim Enthusiasts)
If you want that exact Shift+G behavior from Vim, you can set it up with a popular plugin:
- Open Atom's Settings (press
Ctrl+,orCmd+,) - Head to the Install tab and search for
vim-mode-plus - Install the package, then restart Atom if prompted
Once set up, pressingShift+Gwill instantly take you to the last line—just like in Vim.
内容的提问来源于stack exchange,提问作者Vsevolod
相关产品推荐
相关产品推荐

