User forums > Using Code::Blocks

How to switch between files in Code::Blocks editor window

<< < (2/2)

FrankPeelo:

--- Quote from: blauzahn on September 24, 2025, 03:40:49 pm ---Swap header / source    F11

see https://wiki.codeblocks.org/index.php/Keyboard_Shortcuts

It is one of my favourite nifty little features of Code::Blocks besides F2 for opening/closing the log info pane.

--- End quote ---

Thanks, the link is now bookmarked. It does say ctrl-tab should cycle through recent files, it's provided by the Code::Blocks' editor component and cannot be rebound. But it doesn't work on my machine, which is a pity.

The "Swap header / source" function is great though, I now have a key bound to that, and it's a big help.

Thanks

Frank

FrankPeelo:

--- Quote from: blauzahn on September 25, 2025, 01:15:30 pm ---The tabs on top or bottom of the editor window fill up available space quickly but navigating via the open file list works well for me even when I have dozens of files opened.

--- End quote ---

Yes, but the problem is I want to hop back to where I was a couple of minutes ago, and I have to figure out what file that was!

I have Settings | Environment... | Notebooks appearance -> Use stacked based tab-switching checked, and I was hoping ctrl-tab would bring me back to where I came from.

After posting the question yesterday I found a nice key binding, "Goto declaration", which is brilliant, got to the right header file in a completely different class. But then I was trying to remember where I was before and why I wanted to look up that function -- Bit like sometimes these days when I go upstairs, I'm wondering what I went up for...

ccdric:

--- Quote from: FrankPeelo on September 25, 2025, 01:06:45 pm ---[
* If I try to drag the second file's tab at the top of the C::B editor window, as soon as I click on it I move to that file instead of being able to drag it. 


--- End quote ---

I'm no sure I understand very well (I'm not natural English speaking)
but for me I can move the editor tab if the tab is the selected one, if not it just select it.
just move it on the right border slowly until a blue "ghost" windows appears in the center of the editor,  then release it. it should do what I understand you wants.

blauzahn:

--- Quote ---Yes, but the problem is I want to hop back to where I was a couple of minutes ago, and I have to figure out what file that was!

--- End quote ---

Please have a look at the Browse Tracker plugin. I do not use it myself but here is the wiki page:

https://wiki.codeblocks.org/index.php/Browse_Tracker_plugin

Navigation

[0] Message Index

[*] Previous page

Go to full version