CLion navigation: "Forward" and "Back" jump over locations

Let's take a following example:

1. go with cursor over a variable or function, in file let's say a.cpp

2. select "Go to definition", it takes you to b.cpp

3. press Page Down, now you are on b.cpp line 123

4. now go "Back"

5. it takes you all the way back to point 1) at a.cpp, not where you were before the Page Down (point 2)

 

Is there any way to not make it jump over the locations where you were when using Page Down? PyCharm works correctly and "Back" would take you to point 2.

EDIT: nevermind, latest PyCharm seems to behave simlarly. I have a bit problems understanding what are the rules to remember a location: if you click on a place, it will get remembered. If you move to it via PageUp/PageDown, it won't. If you move to start or end of file via keyboard shortcut, it will be remembered.

EDIT2: it seems something to get used to, though I don't know how to delete this post

0

Please sign in to leave a comment.