Moving back and forth in code

General questions regarding the usage of CodeLite
DSP_Programmer
CodeLite Veteran
Posts: 63
Joined: Mon Apr 06, 2009 10:43 am
Contact:

Moving back and forth in code

Post by DSP_Programmer »

Hello,

I use "Go to previous location" quite often. Is there any way to go then back again from where I started after using this? So assuming I editing at place "n" in code (in one file) and go back 3 times to location "x" (in a different file) using "Go to previous location". Is there any quick way to go back to location "n"?
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Moving back and forth in code

Post by eranif »

In the main toolbar, there are 2 blue arrows, one says 'Forward' and second 'backward'
Use them for navigating in the code back and forth

codelite keep tracks of various operations you do (open file, go to definition, find in files, cscope matches etc) and create an internal 'browsing record' and then you can use the 'Back' and 'Forward' to "walk" through them

Eran
Make sure you have read the HOW TO POST thread
DSP_Programmer
CodeLite Veteran
Posts: 63
Joined: Mon Apr 06, 2009 10:43 am
Contact:

Re: Moving back and forth in code

Post by DSP_Programmer »

Thanks for this,

by default I don't use any toolbar. Is there something I can assign a keyboard shortcut for moving forward?

And while we are at this topic. There is a feature request for this mouse gestures: http://sourceforge.net/tracker/?func=de ... _id=202033
DSP_Programmer
CodeLite Veteran
Posts: 63
Joined: Mon Apr 06, 2009 10:43 am
Contact:

Re: Moving back and forth in code

Post by DSP_Programmer »

I found the solution myself:

For "Forward", the keyboard shortcut can be set under "Settings"->"Keyboard shortcuts"->"Search"->"Navigate Forward".

For "Backward", the keyboard shortcut can be set under "Settings"->"Keyboard shortcuts"->"Search"->"Navigate Backward".
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Moving back and forth in code

Post by eranif »

DSP_Programmer wrote:I found the solution myself:

For "Forward", the keyboard shortcut can be set under "Settings"->"Keyboard shortcuts"->"Search"->"Navigate Forward".

For "Backward", the keyboard shortcut can be set under "Settings"->"Keyboard shortcuts"->"Search"->"Navigate Backward".
Ah! I forgot I added them there as well :)

Thanks for reminding me!
Eran
Make sure you have read the HOW TO POST thread
DSP_Programmer
CodeLite Veteran
Posts: 63
Joined: Mon Apr 06, 2009 10:43 am
Contact:

Re: Moving back and forth in code

Post by DSP_Programmer »

Now that we found out this, there is only this mouse gesture issue left for navigating forward and backward ;-)
DSP_Programmer
CodeLite Veteran
Posts: 63
Joined: Mon Apr 06, 2009 10:43 am
Contact:

Re: Moving back and forth in code

Post by DSP_Programmer »

Don't need mouse gestures any longer. I now use a generic windows tool to map mouse gestures to keyboard shortcuts -> with this I can use mouse gestures for all Codelite features.
Post Reply