Code::Blocks Forums
User forums => Help => Topic started by: mgoyanes on February 23, 2012, 12:02:58 pm
-
Hi there.
I'm using code::blocks to program in C language.
Is it possible to change the default coment style (//) to the C style (/**/)?
If I press CTRL+SHIFT+C code is commented with // and it gives error when compiling.
I know I can enter /**/ by hand but I was thinking if there was the possibility to create a key combination.
Regards,
mgoyanes
-
You can use the keybinder plugin to define shortcuts for edit->box comment or edit->stream comment.
I'm not really sure what is the difference between the two.
-
Sorry but where can I download that plugin?
-
Hm, my magic ball seems to be broken at the moment and I cannot tell your os/distro/c::b version, so I can't tell you how to install it.
p.s. search for it and you'll find how to install it.
-
Sorry but did'n know that was needed to know that.
Code::Blocks 10.05 running on a windows 7 64bits machine.
I tryed to google it but I was unable to find. Probably putting the wrong keywords
-
Reinstall and enable the contrib plugins...
-
You can use the keybinder plugin to define shortcuts for edit->box comment or edit->stream comment.
I'm not really sure what is the difference between the two.
Sweet. Many thanks
box comment:
/*
*
* int a;
*
*/
stream comment:
/*
int a;
*/
-
One way is to go to Edit > Box-comment, but it doesn't have a shortcut by default.
To change this go to Settings > Editor > Keyboard shortcuts,
expand Edit > Box-comment and assign ctrl-shift-c to the Box-comment command, it will override the Comment command.
Cheers