
Auto-completion
+Auto-completion and Templates
To select a template, complete a variable reference or a function call, press the Tab
key after
- a character sequence. Alternatively press Ctrl-Space
(or Option-Space
on Firefox for Mac), which
+ a character sequence. The suggestions shown depend on the current context. For example, to complete a variable reference,
+ type $ followed by the first characters of the variable and press Tab
.
+ To enforce auto-complete and see all suggestions, press Ctrl-Space
(or Option-Space
on Firefox for Mac), which
will also show a list of all available templates when activated on a new line or after whitespace.
If there's only one suggestion, it will be inserted immediately. Otherwise, a popup is shown. In the popup, use the cursor
keys to choose a suggested code or function template. Press
Enter
to select the current template.
For example, to add a new function, enter "fun" and press Tab
. To complete a variable, type $ followed by the
- first characters of the variable and press Tab
.
Code Templates
+eXide supports the same code templates as the textmate editor (a well-known editor on the Mac). To see all available code
+ templates in a mode, place the cursor after whitespace and press Ctrl-Space
(or Option-Space
).
For example, to add a new function, enter "fun" and press Tab
. Some templates also respect the current text
+ selection: to transform a block of code into a "let" statement, select the block, call autocomplete and choose the
+ "let" template.
+
Adding Templates
New templates can be added by editing the .snippets
files which can be found in the eXide/templates
collection.
Browsing and importing modules
Note: the Import
button will only be shown if the active editor tab contains
an XQuery document.