Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: Jonny D on October 28, 2010, 02:21:06 am

Title: New plugin: StartingBlocks
Post by: Jonny D on October 28, 2010, 02:21:06 am
Hey,

I thought a better way to start a new code block would be to press shift+return.  So, instead of whining about it, I made my first plugin:
http://code.bluedinosaurs.com/c++/CodeBlocks/StartingBlocks.cbplugin (http://code.bluedinosaurs.com/c++/CodeBlocks/StartingBlocks.cbplugin)
http://code.bluedinosaurs.com/c++/CodeBlocks/StartingBlocks.zip (http://code.bluedinosaurs.com/c++/CodeBlocks/StartingBlocks.zip)

I still have to assign the keyboard shortcut manually.  Is there a way to do it in the OnAttach method?