leds version 00.10

Welcome
What is leds
Screenshots
Contacts
leds
User Manual
Downloads
Windows
Window version
To do
To do
Known Problems
Links
Links
Acknowledgments

prefEditorShortcuts.png

Shortcuts

The Shortcuts allow to define any a abreviation word and a corresponding expanded arbitrary text.

Definition

For now one shortcut must be completelly defined in one line in the format:
[abbreviation] [space] [expanded text].

To expand a shortcut type the abbreviature and press the autocomplete key (by default <ctrl>+<space>\).
Shortcut abbreviatures must be unique.

D mode shortcuts will override general shortcuts when in D mode.
Java modeshortcuts will override general shortcuts when java mode.

Example

An example of a shortcut:

fori for ( int i = 0 ; i < $cursor ; i++ )\n{\n}\n

will expande to:
for ( int i = 0 ; i < ; i++) { }
and the cursor will be placed after the "< "

Details

Shortcuts can contain other shortcuts place the abbreviation of the shortcut to be included inside "${" and "}"

Shortcuts escape characteres:
  • \n newline
  • \t tab
  • \\ back slash
  • \$ dollar sign

Shortcuts variables:

  • $cursor - place the cursor after expand the shortcut
  • $project - includes the project name on the expanded text
  • (todo) $container (the class name)
  • (todo) $method (the method name)
  • (todo) more...

Special shortcut:

  • ? will expand to "printf(". = .*s
    ", );"

(the current version of shortcuts expantion has a bug and will not indent the firs line of the expanded text)


SourceForge.net Logo
Generated on Wed May 12 23:46:04 2004 by doxygen 1.3.6