Poll
Question:
how to invoke code completion window?
Option 1: qqq
votes: 0
Option 2: qqq
votes: 1
int main()
{
prin // <----------I pressed Ctrl+J, not code completion window poped, why?
thanks!
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:
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)
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.