Abbreviations plugin

From Code::Blocks
Abbreviations
Abbrev.png
Developer(s):
Maintainer(s):
Version: 0.1

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 their actual value.

Note: spaces have been shown as · (dots) to aid visibility.

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·(|)
{
····
};