News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

C::B code-completion without press Ctrl-J

Started by vladtarniceru, October 14, 2013, 05:27:37 PM

Previous topic - Next topic

vladtarniceru

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

if (|)
{

}


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.

scarphin

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.

vladtarniceru

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

oBFusCATed

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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

vladtarniceru

Okay, thank you very much for your answers!

ouch

In the mean time you could always use Autohotkey or some other macro software to do this.