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?
Abbreviation plugin question
-
- CodeLite Curious
- Posts: 8
- Joined: Thu May 15, 2014 9:29 am
- Genuine User: Yes
- IDE Question: C++
- Contact:
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Abbreviation plugin question
No.guang11cheng wrote:in codelite, can I do so?
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
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
-
- CodeLite Curious
- Posts: 8
- Joined: Thu May 15, 2014 9:29 am
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Abbreviation plugin question
ok, i will do it.
thank you very much!
thank you very much!