user697911
user697911

Reputation: 10531

Is there a shortcut to go to the beginning/end of a file in IntelliJ?

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

Answers (8)

Jerry Chen
Jerry Chen

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

Jöcker
Jöcker

Reputation: 6748

Under preferences -> Keymap, a shortcut for Scroll to Bottomand Scroll to Top can be set.

By default, they are not assigned.

Upvotes: 3

Alferd Nobel
Alferd Nobel

Reputation: 3949

On a Mac, these following keys:

  • to start of the file:

option + command + [

  • to end of the file:

option + command + ]

Upvotes: 5

mahfuj asif
mahfuj asif

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

SMBiggs
SMBiggs

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:

enter image description here

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

CrazyCoder
CrazyCoder

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:

top

On Windows these are Ctrl+Page Up and Ctrl+Page Down.

Upvotes: 4

chazsolo
chazsolo

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

nyvokub
nyvokub

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

Related Questions