User forums > Using Code::Blocks

About curly brace auto-completion

(1/2) > >>

hovey:
There is currently a feature about curly brace auto-completion.
When I enter a { on a single line, it will automatically add an empty line and a } on the thrid line.
This feature is great. But why not extend it a little more?
For java style, the { is in the end of a line. When I enter { in the end of line, the close brace } is automatically added. Why not test if a Enter follows, it will add a new empty line between { and }, and point the caret to that line.

Currently, if I don't close the brace-completion, it will takes me many extra keys to write the codes in java style.

Pecan:
If you'd like to roll-your-own (language independent) syntax in CodeBlocks, you might fine cbKeyMacs useful.

It allows you to define any sequence of keys, then paste them in via hotkey or mouse.

http://code.google.com/p/cbkeymacs/w/list

Jenna:
You can also try to use abbreviations  ("Settings -> Editor... -> Abbreviations").

hovey:

--- Quote from: Pecan on June 18, 2010, 01:13:13 pm ---If you'd like to roll-your-own (language independent) syntax in CodeBlocks, you might fine cbKeyMacs useful.

It allows you to define any sequence of keys, then paste them in via hotkey or mouse.

http://code.google.com/p/cbkeymacs/w/list

--- End quote ---


Thx. This tool is great. But if it can invoke the macro by context or a regular expression rule, it may be more helpful.

hovey:

--- Quote from: jens on June 18, 2010, 04:03:29 pm ---You can also try to use abbreviations  ("Settings -> Editor... -> Abbreviations").

--- End quote ---

Yeah. But it requires much extra keys to do my jobs. My main concern is to reduce redundant keys.

Navigation

[0] Message Index

[#] Next page

Go to full version