Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Navigate to the changed lines of code in a file in IntelliJ IDEA

I have a huge class in which I changed couple of lines in different places. Is there a way (shortcut) to navigate through changed lines of code in the file and not to scroll all the way up/down?

like image 818
IKo Avatar asked Oct 23 '25 14:10

IKo


2 Answers

From the official IntelliJ IDEA documentation:

Navigate between changes

If you edit a file that is under version control, IntelliJ IDEA provides several ways to move back and forth with the updates. In particular, you can use the navigation commands, keyboard shortcuts, and the change markers.

  • Press ⌃ Ctrl⌥ Opt⇧ Shift / ⌃ Ctrl⌥ Opt⇧ Shift.

  • In the main menu, go to Navigate | Next / Previous Change.

  • Click a change marker, and then click the ↑ (the Previous Change button) or ↓ (the Next Change button).

To navigate to the place of your last edit, press ⌘ Сmd⇧ Shift⌫ Backspace or select Navigate | Last Edit Location from the main menu.

like image 154
Dmitriy Smirnov Avatar answered Oct 25 '25 08:10

Dmitriy Smirnov


I'm using Control + Alt + Left|Right Arrow for current KeyMap

Refer this screen-shot for your reference in case you are having different mapping. enter image description here

like image 38
Nghia Do Avatar answered Oct 25 '25 10:10

Nghia Do



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!