Page 1 of 1

Abbreviation plugin question

Posted: Thu May 15, 2014 9:38 am
by guang11cheng
in codeblocks, there are buildin variables, see http://wiki.codeblocks.org/index.php?ti ... _expansion
so in the abbreviation plugin, I define 'guard' like this:
#ifndef $ACTIVE_EDITOR_STEM)_H_
#define $ACTIVE_EDITOR_STEM)_H_
|
#endif // $ACTIVE_EDITOR_STEM)_H_

where the "ACTIVE_EDITOR_STEM" is current file name without extension.

and also, there is a '$NOW' variable, which equal current date time string.


in codelite, can I do so?

Re: Abbreviation plugin question

Posted: Thu May 15, 2014 9:50 am
by eranif
guang11cheng wrote:in codelite, can I do so?
No.

The Abbreviation plugin supports random placeholders, i.e.
If you set an abbreviation like this:

Code: Select all

#ifndef $(MY_GUARD)_H
#define $(MY_GUARD)_H 
|
#endif // $(MY_GUARD)_H
The plugin will prompt for replacement for $(MY_GUARD) where you can type anything you want.
I think that adding support for what you want should be very easy to add - can you please file a feature request on GitHub?

https://github.com/eranif/codelite/issues/new

Thanks,
Eran

Re: Abbreviation plugin question

Posted: Tue May 20, 2014 2:40 pm
by guang11cheng
ok, i will do it.
thank you very much!