Page 1 of 1

Go back to previous location?

Posted: Thu Apr 18, 2013 4:45 pm
by mahajanudit
I am currently not able to go back to previous location after I go into function definition/declaration or while debugging when I step into the function call.

Is there a shortcut to do this?

Re: Go back to previous location?

Posted: Thu Apr 18, 2013 5:47 pm
by Verax
I believe the default shortcut is Ctrl-P, but you can change it to whatever you want in "Settings"->"Keyboard Shortcuts". You can also access it in the "Search" menu. I'm not sure about debugging, though.

Re: Go back to previous location?

Posted: Thu Apr 18, 2013 6:50 pm
by mahajanudit
It doesn't work the way I want it to work. I have no idea how it chooses the previous location, but if I jump into a function definition/declaration from its call somewhere, I would ideally want the "go to previous location" to take me to that call.
It somehow opens the previous to previous file I think..

Re: Go back to previous location?

Posted: Thu Apr 18, 2013 8:06 pm
by mahajanudit
Never mind.. Its working now. I think i needed to refresh cscope cache and now it is working perfectly. Thank you for the help.