Author Topic: how to invoke code completion window?  (Read 5011 times)

hongxing

  • Guest
how to invoke code completion window?
« on: October 18, 2005, 10:02:01 am »
int main()
{
    prin    // <----------I pressed Ctrl+J, not code completion window poped, why?
  

thanks!

Offline Urxae

  • Regular
  • ***
  • Posts: 376
Re: how to invoke code completion window?
« Reply #1 on: October 18, 2005, 10:12:24 am »
Did you put the right includes at the top?

Code
#include <stdio.h>

Oh, and don't forget to put the default compiler #include paths in your settings -> compiler options -> directories -> compiler (or something like that, don't have C::B handy at the moment)

EDIT: Oh, and indeed you need to press Ctrl+Space, not Ctrl+J. Thanks Squizzz, I missed that. :oops:
« Last Edit: October 18, 2005, 03:10:53 pm by Urxae »

Offline squizzz

  • Almost regular
  • **
  • Posts: 132
Re: how to invoke code completion window?
« Reply #2 on: October 18, 2005, 11:30:13 am »
int main()
{
    prin    // <----------I pressed Ctrl+J, not code completion window poped, why?
 
This happened, because Ctrl+J doesn't invoke Code Completion (Ctrl + Space does).
Ctrl+J stands for Auto-completion feature, which is somewhat different than Code Completion. Check Settings->Editor->Auto-complete for more details. (it's also where you can define your own keywords, like prin for example)
« Last Edit: October 18, 2005, 11:32:51 am by squizzz »
this space is for rent

hongxing

  • Guest
Re: how to invoke code completion window?
« Reply #3 on: October 19, 2005, 02:29:08 am »
you are right, press ctrl+space to invoke.

but is only shows the functions in my project, when I press "prin" and then ctrl+space, not prntf related function showed.

I have add /usr/include to then path->compiler, whay?

another question, when the code completion showed, how to close it only use keyboard? now I can only close it using mouse click.