Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: cubuspl42 on August 14, 2012, 04:48:16 pm
-
(https://lh5.googleusercontent.com/-fK4MCqLICHY/UCovaqBwpmI/AAAAAAAAACU/eQlNjokWiaA/s788/codeblocks.jpg)
This is very easy question... I tried so many shortcuts, I tried googling it, and still nothing... How can I accept this suggestion?
-
It's not a suggestion, it just shows you the type of the parameter you need to call the function.
It looks like you try try to redefinite an existing function. Is that really what you want ?
-
@jens: OP probably already have delcaration of function, and now he is writing implementation. In this case auto-complete of arguments (with their names) is very useful.
-
@jens: OP probably already have delcaration of function, and now he is writing implementation. In this case auto-complete of arguments (with their names) is very useful.
To achieve this, just right click in the appropriate cpp file, chose "Insert -> All class methods without implementation", chose which implementation-stub to generate and click okay.
Similar can be done for functions without decleration.
-
Yes, I'm implementing previously declared method.
I guess that just autocompleting method arguments is impossible? That's bad news. "Insert all methods without implementation" sometimes doesn't work 100% correctly for me. :/
-
@jens: I know this method, but I often forget about this method of inserting implementation.
BTW: I checked it right now and it works fine on rev 8164, but on my custom build of rev 8229 it doesn't work. Warning: "Can not find any file in parser's database."
-
I have some nightly build, I'm not sure which one (I'll check it, it's on other computer) and the functionality itself works, but sometimes it shows implemented methods as unimplemented and vice versa.