![]() ![]() This button is only enabled when the changes are applied. A new template item is added to the current node, and the fields in the Template Text area show the definition of the selected template.Ĭlick this button to restore the deleted live templates. Removes the selected live template from the list.Ĭlick this button to create a new template based on the selected template. You can define the template abbreviation, description, text, variables, expansion key, and context in the editing area below. Otherwise, the abbreviation is considered a set of characters.Īdds a new template item to the current group of templates. ![]() If a template is active, the editor is sensitive to its abbreviation. ![]() Only active templates are displayed in the editor. To activate a template or an entire group, select the checkbox near the template or the group. The abbreviations are grouped below nodes and sorted alphabetically within each group. When Custom is selected, the Change link appears next to the drop-down, leading you to the Keymap page.ĭisplays all currently available template abbreviations with their descriptions. If the standard expansion keys ( Tab, Enter, or Space) are not desirable, select the Custom option from this list. Individual expansion keys for the particular templates are defined in the editing area. Specifies the default invocation key for all templates. To configure a template, expand the desired group (for example, Ruby) and select a template. On this page, you can see all the available live templates grouped by language or framework. To configure live templates, open Settings ( Ctrl+Alt+S), go to the Editor | Live Templates page. Abbreviations of modified default templates are shown in the list with blue font. The abbreviation must be unique within a group, but the same abbreviation may be used in different groups and expand to different constructs according to the context of the corresponding group. If you set a dialect for a live template, this live template will work only in this dialect.Įach live template is defined by an abbreviation containing alphanumeric characters, dots, and hyphens. In the Change Context Type for Selected Templates window, expand the SQL tree node and select the context. Right-click the template you want to modify and select Change context. In Settings Ctrl+Alt+S, navigate to Editor | Live Templates. For example, if you want the upd template to work only in MySQL and not in Db2. You can select a specific dialect for a live template. To move a template to another group, right-click the template, select Move, and then select the necessary group name. Templates are grouped according to the context where they can be used (usually, by the corresponding language). On the Live Templates page, you can see all the available live templates, edit them and create new templates. To configure live templates, open the Editor | Live Templates page of the IDE settings Ctrl+Alt+S. cfrom after an expression to invoke the corresponding postfix completion and expand the SELECT statement to SELECT FROM. It transforms the current expression without selecting it. Postfix code completion is similar to live templates. Surround templates wrap a block of the selected code with the text specified by the user. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |