Author Topic: C::B code-completion without press Ctrl-J  (Read 4781 times)

Offline vladtarniceru

  • Single posting newcomer
  • *
  • Posts: 8
C::B code-completion without press Ctrl-J
« 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

Code
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.
« Last Edit: October 14, 2013, 05:47:28 pm by vladtarniceru »

Offline scarphin

  • Lives here!
  • ****
  • Posts: 644
Re: C::B code-completion without press Ctrl-J
« Reply #1 on: October 14, 2013, 05:42:49 pm »
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.

Offline vladtarniceru

  • Single posting newcomer
  • *
  • Posts: 8
Re: C::B code-completion without press Ctrl-J
« Reply #2 on: October 14, 2013, 05:45:19 pm »
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 _.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: C::B code-completion without press Ctrl-J
« Reply #3 on: October 14, 2013, 06:10:49 pm »
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!]

Offline vladtarniceru

  • Single posting newcomer
  • *
  • Posts: 8
Re: C::B code-completion without press Ctrl-J
« Reply #4 on: October 14, 2013, 06:13:05 pm »
Okay, thank you very much for your answers!

Offline ouch

  • Almost regular
  • **
  • Posts: 223
Re: C::B code-completion without press Ctrl-J
« Reply #5 on: October 14, 2013, 08:22:00 pm »
In the mean time you could always use Autohotkey or some other macro software to do this.