RubyMine 2024.2 Help

Language Injections

For the Language Injections page to be available, the IntelliLang plugin must be enabled. (This plugin is bundled with the IDE and enabled by default.)

Use this page to manage the list of automatic language injections and configure the language injection feature for text, attributes, and parameters .

Injection entries

You can sort the information by any of the columns by clicking the cells in the header row. The current sorting status is shown by the corresponding sorting marker: the Move up button for the ascending order or the Move down button for the descending order.

Item

Description

Checkboxes

Use the checkboxes to enable or disable the corresponding injections.

You can also enable or disable a number of injections at once. To do that, select the required injections in the list and click the Enable Selected Injections button or the Disable Selected Injections button on the toolbar.

Name

The language in which the injection is available, the injection name and, in parentheses, the package that contains the corresponding implementation.

Language

The injected language.

Scope

One of the following:

  • Built-in. This is a category for pre-defined injections. In terms of the scope, those are the IDE-level injections.

  • IDE. User-defined injections that are available in all of your projects.

  • Project. User-defined injections that are available only in the current project.

You can move the user-defined injections between the IDE and the project levels by using the Move to Project Scope button the toolbar.

Toolbar

Item

Description

the Add button

Create a new injection entry. Select the injection category and then specify the injection settings in the dialog that opens.

the Remove button

Remove the selected entries from the list.

the Edit button

Edit the settings for the selected injection.

IMPORTANT: Don't edit the settings for built-in injections.

the Duplicate button

Create a copy of the selected injection entry. Then edit the settings for that copy as necessary.

the Enable Selected Injections button

Enable all the injections currently selected in the list.

the Disable Selected Injections button

Disable all the injections currently selected in the list.

the Import button

Move the selected injections between the IDE and the project levels. See also Language Injections.

the Import button

Import injection entries from another RubyMine installation:

  1. In the dialog that opens, select the IntelliLang.xml file to import the info from.

    As a result, a dialog opens that shows the entries contained in the selected configuration file.

  2. Remove the entries that you don't want to import using the Delete button. (This doesn't affect the contents of the source 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 the settings are imported via the core Importing Settings feature.

the Export button

Export the selected injection entries to a file. In the Export Selected Injections to File dialog that opens:

  • To add the entries to an existing file, select the destination file.

  • To save the entries in a new file, specify the filename and choose the filetype from the list.

Last modified: 08 October 2024