Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: Calmarius on November 04, 2016, 05:19:31 pm
-
I use Code::Blocks as C and C++ text editor to have code completion, without creating a project.
Whenever I open a file from a file manager (or using xdg-open), it reopens all the tabs I closed in the current session, it's very annoying.
And it's even more annoying that the focused tab is not the file I opened, but something else.
Is there a way to disable this behavior?
I expect that it opens just a single tab - the requested file, not all other closed tabs.
I'm on Ubuntu, I don't have Windows.
-
Have you tried
Settings->Environment->General Settings->Layout options and On project load?
-
If you did not close Code::Blocks between closing a file and opening the next one, you might have stumbled over a wxWidgets(< 3.0)-bug, that does not clear the commandline of a running process: http://forums.codeblocks.org/index.php/topic,21471.msg146311.html#msg146311 and therefore adds the new file to the already existing list of files to open.