Code::Blocks Forums

User forums => Help => Topic started by: teto on September 03, 2014, 12:14:58 pm

Title: Comment mapping gone
Post by: teto on September 03, 2014, 12:14:58 pm
Hi,

I am using nightlies and the binding to comment code (Ctrl+Shift+C) disappeared (Uncomment still functional). I believe it got stolen by the "help plugin". I disabled it but it does not seem to be back. Is a restart mandatory (I've lots of tabs sorted in different panels so I am a bit reluctant to) or is there a way to know what plugin stole the mapping (via a verbose restart for instance ?)
Title: Re: Comment mapping gone
Post by: Jenna on September 03, 2014, 12:26:45 pm
Works fine here on linux (newest trunk) !

Why do you think it's the help-plugin ?

Check the settings in "Settings -> Editor -> Keyboard shortcuts".
Title: Re: Comment mapping gone
Post by: teto on September 03, 2014, 12:40:59 pm
Works perfectly thanks there are so many options (which is good) in CB that sometimes I can't find them.

Quote
Why do you think it's the help-plugin ?
Because after installing contrib, I typed Ctrl + shift + C as usual and it tried to launch a *.chm file with the name of the current project. When I disabled the plugin Ctrl+shift+C did nothing. I've tried reenabling theplugin and the mapping to see if it would steal the mapping again but it didn't. This might have been a glitch due to my chaotic setup so I don't think it's worth investigating.

thanks again !
Title: Re: Comment mapping gone
Post by: teto on October 13, 2014, 06:17:17 pm
With the keybinder plugin it's easy to track keybindings and I was wrong, it was no the help plugin but the doxyblocks plugin that steals Shift+Alt+C and maps it to "Run CHM". I find this a bit aggressive since the commenting shortcut is quite useful, at least more than "Run the CHM".
Title: Re: Comment mapping gone
Post by: Alpha on October 13, 2014, 07:36:48 pm
@devs: This seems to be a rather common complaint (and in my opinion, a plugin should not override shortcuts provided by core anyways).  Is there any objection to stripping default bindings from DoxyBlocks?
Title: Re: Comment mapping gone
Post by: oBFusCATed on October 13, 2014, 08:46:25 pm
Nope.
Title: Re:
Post by: MortenMacFly on October 13, 2014, 09:57:44 pm
Nope here, too.
Title: Re: Comment mapping gone
Post by: Jenna on October 13, 2014, 10:37:48 pm
No objections here either.
Title: Re: Comment mapping gone
Post by: Alpha on October 14, 2014, 05:57:23 am
Done.

I will leave it for someone else to decide if the other bindings it provides (which are for functions that I do not believe are commonly used) should be removed; and if/what the default shortcuts for inserting line/block comments should be added (more common usage).