News:

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

Main Menu

how to invoke code completion window?

Started by hongxing, October 18, 2005, 10:02:01 AM

Previous topic - Next topic

hongxing

int main()
{
   prin    // <----------I pressed Ctrl+J, not code completion window poped, why?
 

thanks!

Urxae

#1
Did you put the right includes at the top?

#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:

squizzz

#2
Quote from: hongxing on October 18, 2005, 10:02:01 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)
this space is for rent

hongxing

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.