Reputation: 10531
I often need to get quickly to the very beginning or very end of a file in the IntelliJ editor. Is there a shortcut key or button that allows me to do this quickly?
I am running on Windows, if that matters.
Upvotes: 31
Views: 13621
Reputation: 426
After spending minutes to search on the web, i don't find the answer for just using cmd
+ up
or down
. If you are the same, as a quick workaround, you can cmd
+ a
to select all text and press up
or down
to move it.
Upvotes: 0
Reputation: 6748
Under preferences
-> Keymap
, a shortcut for Scroll to Bottom
and Scroll to Top
can be set.
By default, they are not assigned.
Upvotes: 3
Reputation: 3949
On a Mac, these following keys:
option + command + [
option + command + ]
Upvotes: 5
Reputation: 1979
By default in windows the shortcut is
ctrl+end
You can customize the shortcut. To use only end
button as shortcut go to Settings -> Keymap -> Editor action -> move caret to text end
Right click on move caret to text end
and update shortcut to end
Upvotes: 1
Reputation: 11688
To find what keyboard strokes are already defined for this, go to Preferences->Keymap and search for text start
for jumping to the beginning of the file and text end
for jumping to the end of the file. You'll get something that looks like this:
The right column tells you what keystrokes have been mapped to these functions. Feel free to change them to something that you find more intuitive by double clicking on the right column and following the instructions on the pop-ups.
Upvotes: 6
Reputation: 401975
The action is called Move caret to Page Top/Bottom, default shortcuts would depend on the OS/Keymap and can be checked here:
On Windows these are Ctrl+Page Up and Ctrl+Page Down.
Upvotes: 4
Reputation: 8439
Beginning of File: Fn + ⌘ + ←
End of File: Fn + ⌘ + →
Note: This answer was posted prior to windows
specificity. Leaving it here to include MacOS alternative.
Upvotes: 43
Reputation: 569
On Windows, you can use Ctrl+Home and Ctrl+End to go to the beginning and end of a file respectively.
Upvotes: 12