Keyboard shortcut for Jump to Previous View Location (Navigate back/forward) in IntelliJ IDEA

前端 未结 18 1841
我在风中等你
我在风中等你 2020-12-04 04:39

I know Ctrl+Shift+Backspace is used to go to the location of the last edit.

But I want to jump to whichever location I was most rece

相关标签:
18条回答
  • 2020-12-04 05:21

    Many excellent answers so far, and they do answer the question...But, if you don't want to have to deal with disabling graphics driver's settings, or creating new keyboard mappings, or are developing through a remote session (RDP) or within a VM that intercepts your keystrokes, good-old keyboard navigation still works. Just do Alt-N to bring up the Navigate menu and then hit the B key.

    Please note that you don't hit all keys at the same time. So:

    Alt-N wait B

    This is what I use all the time, for exactly the case that the OP asked about. Also, this will probably hold through any IntelliJ updates.

    0 讨论(0)
  • 2020-12-04 05:22

    For Ubuntu, Ctrl + Alt + Left and Ctrl + Alt + Right work fine.

    By default these keys are assigned for Ubuntu's workspace navigation.

    You need to disable that by going to :

    System Settings > Keyboard > Shortcuts Tab > Navigation and disable Switch to workspace left and Switch to workspace right by pressing Backspace.

    Or you can choose to change shortcuts in Intellij itself:

    File > Settings > Keymap > Main menu > Navigate > Back/Forward
    
    0 讨论(0)
  • 2020-12-04 05:23

    OSX and Android Studio version:

    CMD+ [ and CMD+ ]

    to move to the previous carret location.

    0 讨论(0)
  • 2020-12-04 05:23

    In IntellJ 2017.2,

    Ctrl+[ and Ctrl+] navigate between previous locations in the current file.

    Ctrl+Alt+ and Ctrl+Alt+ navigate between previous locations in all files.

    0 讨论(0)
  • 2020-12-04 05:26

    Alt + Shift + ← (Left Arrow)

    or

    Ctrl + E (Recent Files pop-up).

    Also check:

    Ctrl + Shift + E (the Recently Edited Files pop-up).

    Mac users, replace Ctrl with ⌘ (command) and Alt with ⌥ (option).

    Update In v12.0 it's Alt + Shift +← (Left Arrow) instead of Alt + Ctrl + ← (Left Arrow).

    Update 2 In v14.1 (and possibly earlier) it's Ctrl + [

    Update 3 In IntelliJ IDEA 2016.3 it's Ctrl + Alt + ← (Left Arrow)

    Update 4 In IntelliJ IDEA 2018.3 it's Alt + Shift + ← (Left Arrow)

    Update 5 In IntelliJ IDEA 2019.3 it's Ctrl + Alt + ← (Left Arrow)

    0 讨论(0)
  • 2020-12-04 05:28

    Mostly the default shortcut key combination is Ctrl + Alt + Left/Right. (I'm using the linux version)

    Or you can have a toolbar option for it. Enable the tool bar by View -> Toolbar. The Left and Right Arrows will do the same. If you hover over it then you can see the shortcut key combination also.

    Just in case the key combination is not working (this can be due to several reasons like you are using a virtual machine, etc) you can change this default key combination, or you can add an extra combination (ex: For Back/Move to previous Ctrl + Alt + < or Comma).

    Go to Settings -> select keymap (type keymap in the search bar) -> **Editor Actions -> search for back and find Navigate options -> change the settings as you prefer.

    0 讨论(0)
提交回复
热议问题