User forums > Using Code::Blocks

Code Completion / Intellisense in C and C++ files

(1/1)

ope:
Hi,

I'm writing on a C Source File "blah.c" and would like write static foo bar. The code completion algorithm got me 'static' and 'static_cast' - the last is a c++ cast. Is this a bug?

Thanks
Olaf

mariocup:
Hi Ope,

the auto complete feature of CodeBlocks scans the lexer_*.xml files. So these entries static, static_cast are part of these lexer files, so you get auto complete for C and C++. You can modify the keyword in the settings/editor/syntax hightlghting. Just select keyword set 1 and modify the entries.

Bye,

Mario

Navigation

[0] Message Index

Go to full version