Preferences - Templates
Use this dialog window to create, edit, and remove templates.
These settings only apply to the LN Studio Script Editor.
To insert a template in the script editor, use the Code Assist feature.
Overview window
Use the check boxes to enable and disable templates. If a check box is selected, you can use Code Assist to insert the corresponding template in your source code.
Use these buttons to manipulate and configure templates:
Button | Description |
---|---|
Opens a dialog box to create a new template. | |
Opens a dialog box to edit the currently selected template. | |
Removes all selected templates. | |
Restores any predefined templates that have been removed. | |
Restores any
predefined templates to their default configuration.
This action does not modify user-created templates. |
|
Imports templates from an XML file in the file system. | |
Exports all selected templates to an XML file in the file system. |
Edit Template dialog window
- Name
- The name of the template.
- Context
- This is a standard Eclipse option that is not used by LN Studio.
- Automatically insert
- If this check box is selected, code assist automatically inserts the template at the cursor position, if the template is the only completion proposal for the string you entered in the Script Editor.
- Description
- The description of the template.
- Pattern
- The pattern of the template. This is the text inserted in the editor when you select the template.