

It also does not move the caret to the first column, it tries to stay in the same column that it was previously Solution no. To move to the beginning/end of a file, use ctrl+home/ctrl+end on Windows/Unix or command-home and command-end on the Mac, as suggested.Ĭtrl+pageup (Move Caret to Page Top) moves the caret to the top of the viewable portion of the file (page, viewport). Your keyboard probably does way more than you thought. Superuser has more information.Īlso, if you open the Keyboard preferences pane and look at the Input Sources tab, you will find that the displayed keyboard changes as you press modifier keys such shift, option and function. For instance, using function+ left and function+ right will provide windows-style home and end behaviour while function+ up and function+ down will provide page up and page down behaviour. Many key combinations with option/ function keys produce missing keys and do other neat things. On a Mac laptop, there are no home or end keys. On Mac, command+ home and command+ end move to the top and bottom of the file. I have no idea why that isn’t the default in Intellij instead of the seemingly pointless “scroll one line” feature. If you set those to Command+UpArrow and Command+DownArrow, it’ll work like a normal text editor. 2:Įdit the Intellij Preferences -> KeyMap -> Editor Actions entries for “Move Caret to Text Start” and “Move Caret to Text End”.

1:Ĭommand+ home or fn+ command+ left arrow Solution no. Is there a keyboard shortcut to move to the beginning of a file? I checked IntelliJ’s Keymap for Mac OS X and it doesn’t list anything for navigating to the start of a file.
