File | Settings | Project Settings | Language Injection
Use this page to manage the list of available language injections and configure the language injection feature for text, attributes, and parameters. The page appears in the Settings dialog, when IntelliLang plugin is enabled.
In this section:
- Language Injections
- Language Injection Settings Dialog: Java Parameter
- Language Injection Settings Dialog: XML Tag
- Language Injection Settings Dialog: XML Attribute
- Language Injection Settings: Generic PHP
- Language Injection Settings: Groovy
Before you start working with language injections, make sure that IntelliLang plugin is enabled.
The plugin is bundled with IntelliJ IDEA and activated by default. If it is not, enable the plugin.
This table shows all injections currently available in IntelliJ IDEA.
Use the toolbar buttons to manage the contents of the table.
|Item||Tooltip and Shortcut||Description|
Click this button to create a new entry. From the pop-up list that opens
select the new entry type:
Configure the entry in the Language Injection Settings dialog that opens.
|Click this button to have the selected entry removed from the list.|
|Duplicate||Click this button to have IntelliJ IDEA create a copy of the selected injection entry. By re-configuring this copy you can create a new injection based on the existing one.|
|Click this button to re-configure the selected entry in the Language Injection Settings dialog box that opens.|
|Enable Selected Injections||Click this button to enable the injections that are currently selected in the list.|
|Disable Selected Injections||Click this button to disable the injections that are currently selected in the list.|
Move to Project/
Use this button to toggle between the project and global states of the selected injection configurations.
|Import||Click this button to have an injection configuration from another IntelliJ IDEA installation imported.
The Select Path dialog opens, where you can
select the IntelliLang.xml file from the desired location.
The dialog box that opens displays the entries contained in the configuration file.
Remove the unnecessary entries from the list using the Delete button.
This will not affect the contents of the configuration file.
This selective import-feature makes it easy to share certain configurations in a team without losing any local entries as it happens when settings are imported via the core Importing Settings feature.
To prevent inconsistent data, import is only possible if the existing configuration has not been changed or has been saved using the Apply button.
Click this button to have one or several selected injection configurations saved in a file. Upon clicking this button,
the Export Selected Injections to File dialog box opens.