Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: FrankPeelo on November 18, 2026, 04:37:19 pm

Title: Code completion always selecting its own first suggestion
Post by: FrankPeelo on November 18, 2026, 04:37:19 pm
Hi all

Something funny happening in Code::Blocks, is it some setting I can fix?

When I start typing an identifier, Code::Blocks pops up a menu of identifiers that I might be trying to type. I can click the one I want, or use down-arrow and press Enter.

But then it ignores whatever I selected and uses the first suggestion on the menu!

So for example, I start typing uint
A menu pops up with uint16_t, uint32_t, uint64_t and so on.
I go down to uint_fast32_t and press enter. Or, I click on uint_fast32_t with the mouse.
C::B completes the identifier I was typing as uint16_t
and NOT the uint_fast32_t that I selected.

I'm sure it was working before. I tried shutting down Code::Blocks and restarting it, but this had no effect AFAICS. Is there a setting to fix it, or a file that needs to be deleted or something?

I am using Ubuntu 22.04.5 LTS, and the Code::Blocks from the repositories. Help | About gives me this:

Code
Name                   : Code::Blocks
Version                : 25.03-r13644
SDK Version            : 2.25.0
Scintilla Version      : 3.7.5
Author                 : The Code::Blocks Team
E-mail                 : info@codeblocks.org
Website                : https://www.codeblocks.org
OS                     : Linux 6.8.0-136-generic x86_64
Scaling factor         : 1.000000
Detected scaling factor: 0.989583
Display PPI            : 96x95
Display count          : 1
Display 0              : XY=[0,0]; Size=[1920,1080]; Primary

wxWidgets Library (wxGTK port)
Version 3.0.5 (Unicode: wchar_t, debug level: 1),
Runtime version of toolkit used is 3.24.
Compile-time GTK+ version is 3.24.33.

Thanks

Frank