User forums > Using Code::Blocks
Defining Abbreviations with non alpha-num chars
(1/1)
ahagele:
I'm used to have some keyboard shortcut to add little text blocks. Like a fixme line get a // .??. comment at the end.
I don't seem to be able to set a keyboard shortcut in C::B to do that.
So I tried the Abbreviations settings. However if I add a keyword like ?? to expand into the above nothing happens.
It seems that any non-alpha-numeric char does not work.
Is there a reason for that? Is there a way to get around this?
BlueHazzard:
i can confirm this behaviour with the latest nightly
is this intended?
oBFusCATed:
I don't know. The fastest way will be to check the code of the abbreviations plugin.
BlueHazzard:
i have looked into it, and found a "fix"
i am still not 100% sure, why it was implemented as it is, but my tests show, that it is working with this patch.
greetings
MortenMacFly:
--- Quote from: BlueHazzard on January 28, 2016, 01:03:03 pm ---i have looked into it, and found a "fix"
--- End quote ---
That is correct, there is no need to look only for words here.
Applied in SVN. Thank you!
Navigation
[0] Message Index
Go to full version