User forums > Using Code::Blocks
how to invoke code completion window?
(1/1)
hongxing:
int main()
{
prin // <----------I pressed Ctrl+J, not code completion window poped, why?
thanks!
Urxae:
Did you put the right includes at the top?
--- Code: ---#include <stdio.h>
--- End code ---
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:
--- Quote from: hongxing on October 18, 2005, 10:02:01 am ---int main()
{
prin // <----------I pressed Ctrl+J, not code completion window poped, why?
--- End quote ---
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)
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.
Navigation
[0] Message Index
Go to full version