Abbreviation plugin question

CodeLite installation/troubleshooting forum
guang11cheng
CodeLite Curious
Posts: 8
Joined: Thu May 15, 2014 9:29 am
Genuine User: Yes
IDE Question: C++
Contact:

Abbreviation plugin question

Post 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?
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Abbreviation plugin question

Post 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
Make sure you have read the HOW TO POST thread
guang11cheng
CodeLite Curious
Posts: 8
Joined: Thu May 15, 2014 9:29 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Abbreviation plugin question

Post by guang11cheng »

ok, i will do it.
thank you very much!
Post Reply