Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: vladtarniceru on October 14, 2013, 05:27:37 pm
-
Hi there.
I already asked this question on stackoverflow but it seems that no one from there knew the answer, so I'm asking here.
Is it possible to make codeblocks to complete the code without pressing Ctrl-J ? For example, everytime I write ifb it should complete with
even if I don't press Ctrl-J after.
Thanks in advance!
PS: I'm using linux, ubuntu 12.10, even if I don't think it has any relevance.
-
I don't think that's possible because of reasons that someone might have a variable and/or function as 'ifbooted', 'forbilliontimes' etc... Might be odd but possible and that someone would then end up with unexpected code.
-
I was already thinking at this and I changed ifb with _IF. Maybe I will find _IF in some other variable, but for now I'm coding only algorithms in C++ and I don't use any variable names starting with _.
-
At the moment the abbreviations and code completion are two separate subsystems and they need to be merged in order to provide this feature.
Probably this could be possible in the future when we finish our CC API redesign.
-
Okay, thank you very much for your answers!
-
In the mean time you could always use Autohotkey or some other macro software to do this.