DataGrip 2017.2 Help

Language Injections

File | Settings | Editor | Language Injections for Windows and Linux
DataGrip | Preferences | Editor | Language Injections for macOS


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 your data type patterns and other language injection settings. See Using pattern-based injections for user-defined data types.

See also, Language injections.

Injection entries

ItemDescription
Check boxesUse the check boxes 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 Enable Selected Injections /help/img/idea/2017.2/iconSelectAll.png or Disable Selected Injections /help/img/idea/2017.2/iconUnSelectAllRemoteRunDialog.gif on the toolbar.

Name The language in which the injection is available followed by a data type pattern or an injection name.
LanguageThe injected language.
ScopeOne 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 /help/img/idea/2017.2/icon_injection_move_to_project_make_global.png on the toolbar.

Toolbar

ItemDescription
/help/img/idea/2017.2/new.png Create a new injection entry. Select the injection category and then specify the injection settings in the dialog that opens.
/help/img/idea/2017.2/delete.png Remove the selected entries from the list.
/help/img/idea/2017.2/edit1.png Edit the settings for the selected injection.

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

/help/img/idea/2017.2/copy.gif Create a copy of the selected injection entry. Then edit the settings for that copy as necessary.
/help/img/idea/2017.2/iconSelectAll.png Enable all the injections currently selected in the list.
/help/img/idea/2017.2/iconUnSelectAllRemoteRunDialog.gif Disable all the injections currently selected in the list.
/help/img/idea/2017.2/icon_injection_move_to_project_make_global.png Move the selected injections between the IDE and the project levels. See also, Scope.
iconImport.png Import injection entries from another DataGrip installation:
  1. In the Select Path dialog, 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.)
exportToTextFile.png 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 file name and choose the file type from the list.
Last modified: 9 October 2017

See Also