Inserting code templates

Inserting code templates is easy, it can be done in two ways:

  • By using the shortcut key Ctrl+J which opens the code templates popup box and then selecting the code template.
  • By typing the callword associated with the code template you want to insert and then pressing Ctrl+J which will replace the callword with the associated code template.

Note

If you see no popup box after pressing Ctrl+J, it means that there are no snippets in the Library that have an assigned callword.

Over the time you might acumulate large amount of snippets. If you work with more than one programming language, it may be a good idea to group code templates by means of assigning common prefixes to the callwords. For example, a snippet in PHP that defines an if-else block, could be given a callword "phpife".