Recently, I changed the habit of operating system to Ubuntu. I used Intellij Idea tool to develop Java in Ubuntu system. During the development process, I found that the shortcut key to return to the last location failed. On Windows, IDEA uses the default keymap configuration, while Ubuntu uses the default GNOME keymap configuration, as shown below:

Solutions:

Change keyMap’s default GNOME to Eclipse as shown below:

Then use the shortcut Alt + Left to return to the previous location, and use Alt + Right to return to the next location.