Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij - Go back and forth within a file

Is it possible with a hotkey to navigate back and forth in a class, or file ... rather than between files?

I know it is possible to go back and forth but that happens globally now, using all files. I want to jump between the spots for this file only.

Should not be hard to add on, just filter the history stack for the current active file.

like image 830
mjs Avatar asked Feb 15 '13 16:02

mjs


People also ask

How do I move back and forth in IntelliJ?

To navigate backwards, press Ctrl+Alt+Left . To navigate forward, press Ctrl+Alt+Right . To navigate to the last edited location, press Ctrl+Shift+Backspace .

How do I navigate from one file to another in IntelliJ?

From the main menu, choose Navigate | Declaration Ctrl+B , or use any other method, described in Navigating section. The corresponding template files opens in the editor.

What is Ctrl Shift O in IntelliJ?

In Eclipse, you press CTRL + SHIFT + O “Organize Imports” to import packages automatically. For IntelliJ IDEA, if you press CTRL + ALT + O “Optimize Imports”, it just removes some unused imports, never imports any package.

What is Ctrl Shift R in IntelliJ?

shift+F6. rename. ctrl+shift+r. ctrl+shift+N. find file / open resource.


1 Answers

No. But it's possible to go to last edited location. If you need it - you can write feature request on JetBrains tracker. enter image description here

UPD 2019 Actually there is relatively new shortcut Ctrl + Shift + E to show you recent locations. enter image description here

like image 164
Igor Konoplyanko Avatar answered Oct 07 '22 14:10

Igor Konoplyanko