Difference between revisions of "Abbreviations plugin"
From Code::Blocks
m |
m |
||
Line 11: | Line 11: | ||
* The <code>|</code> (pipe) symbol will determine the location of the cursor. | * The <code>|</code> (pipe) symbol will determine the location of the cursor. | ||
* Macros like <code>$(my macro)</code> can be added, and will ask for user substitution on use. | * Macros like <code>$(my macro)</code> can be added, and will ask for user substitution on use. | ||
+ | * Macros such as <code>$NOW</code> are replaced with there actual value. | ||
==Included keywords== | ==Included keywords== |
Revision as of 01:26, 22 October 2011
Abbreviations provides auto-completion (note that this has nothing to do with code completion). It is invoked by the keyboard shortcut Ctrl-J after typing a keyword. (For more complex macros see the KeyMacs plugin.)
- The
|
(pipe) symbol will determine the location of the cursor. - Macros like
$(my macro)
can be added, and will ask for user substitution on use. - Macros such as
$NOW
are replaced with there actual value.
Included keywords
- class
class·$(Class·name)|
{
public:
····$(Class·name)();
····~$(Class·name)();
protected:
private:
};
- guard
#ifndef $(Guard·token)
#define $(Guard·token)
|
#endif·//·$(Guard·token)
- if
if·(|)
····;
- ifb
if·(|)
{
····
}
- ife
if·(|)
{
····
}
else
{
····
}
- ifei
if·(|)
{
····
}
else·if·()
{
····
}
else
{
····
}
- for
for·(|;·;·)
····;
- forb
for·(|;·;·)
{
····
}
- now
$NOW
- nowl
$NOW_L
- nowlu
$NOW_L_UTC
- nowu
$NOW_UTC
- struct
struct·|
{
····
};
- switch
switch·(|)
{
case·:
····break;
default:
····break;
}
- tday
$TDAY
- tdayu
$TDAY_UTC
- today
$TODAY
- todayu
$TODAY_UTC
- wdu
$WEEKDAY_UTC
- while
while·(|)
····;
- whileb
while·(|)
{
····
};