Recent Posts

Pages: 1 ... 5 6 7 8 9 [10]
91
Using Code::Blocks / Re: How to switch between files in Code::Blocks editor window
« Last post by blauzahn on September 25, 2025, 06:52:14 pm »
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!

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

92
Using Code::Blocks / Re: How to define a Variable value frome shell cmd
« Last post by stahta01 on September 25, 2025, 02:40:34 pm »
The tilted tic does that in places in CB   [`]  the tic between the square brackets.
Edit you need one at both the start and end of the command.
Edit2: I have never used it to define a variable; so, not sure where all it works.
I have used it in both compiler and linker extra setting.

Tim S.
93
Using Code::Blocks / Re: How to switch between files in Code::Blocks editor window
« Last post by ccdric on September 25, 2025, 02:06:28 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.
 


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.

94
Using Code::Blocks / Re: Moving Watches window
« Last post by FrankPeelo on September 25, 2025, 01:45:12 pm »
On my machine, the watch window was docket at the bottom of the screen.

I clicked on the word "Watches" at the top of the watch window. The bar across the top of the window went blue. Then I was able to drag it out and drop it in the middle of my screen.

Next I drag the same "Watches" top bar to the top of my editor window, i.e. to the top of the code. The top of the editor window gets shaded blue. Then I can drop it there and it is over the code.

That's "over" in the sense of "above it on the screen". I didn't find a way to make it cover all the source code. But I would think you need to be able to see the source code to know where you are debugging.
95
Using Code::Blocks / Re: How to switch between files in Code::Blocks editor window
« Last post by FrankPeelo on September 25, 2025, 01:36:38 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.

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...

96
Using Code::Blocks / Re: How to switch between files in Code::Blocks editor window
« Last post by FrankPeelo on September 25, 2025, 01:19:30 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.

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
97
Using Code::Blocks / Re: How to switch between files in Code::Blocks editor window
« Last post by blauzahn on September 25, 2025, 01:15:30 pm »
I have the open file list window attached to the right side of the cb-window, next to the editor. In addition to that I have set in settings|editor|other editor setttings| Label in editor tab is the file's to relative path. 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.

At the bottom I prefer to have the logs getting the full width.
98
Using Code::Blocks / Re: How to switch between files in Code::Blocks editor window
« Last post by FrankPeelo on September 25, 2025, 01:06:45 pm »
- switch quickly : for me shift-ctrl-tab works
- side by side :  open 2 file, drag and drop one of them on the right side .. works fine for me too

Thanks for that @ccdric, shift-ctrl-tab gets me to the tab without using the mouse, which is an improvement. Then ctrl-tab lets me change which file I'm looking at, although not to toggle back to the one I was at before.

The side by side option sounds very interesting! But I can't get it to work.
Now there are multiple source files open in Code::Blocks. The name of each file is in a tab at the top of the editor window. First file is showing in the editor, I should drag and drop another on its right.
  • 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.
  • If I drag the filename from the "Projects" tab in the C::B management pane, the path of the file is inserted into the file.
  • If I drag from the "Files" tab in the C::B management pane, nothing happens.
  • If I drag from the file browser, the file I drag opens in its own tab.
 

Sorry, I would like to use your hint but I can't figure it out.

Thanks anyway.
99
Help / Re: code::blocks hangs at startup
« Last post by blauzahn on September 25, 2025, 01:05:59 pm »
I might have skipped all wxSmith stuff in cmake with
Code
-with-contrib-plugins=all,-wxsmith,-wxsmithaui,-wxsmithcontrib ...

Will check this evening. Deleting the corresponding zip-files is a quick way. 

--safe-mode unfortunately does not work as I stated before.

Thanks for your answers.
100
General (but related to Code::Blocks) / Re: Welcome Newcomers - PLEASE READ!!!
« Last post by Lufex on September 25, 2025, 12:37:09 pm »
I'm new here.
Amateur C++ programmer from NZ

oh and Arch btw.
Pages: 1 ... 5 6 7 8 9 [10]