# Language Injection Settings dialog: Java Parameter

> **TL;DR**
> `File | Settings | Settings | Language Injection — Java Parameter⋖` for Windows and Linux
>
>
>
> `IntelliJ IDEA | Settings | Settings | Language Injection — Java Parameter⋖` for macOS
>
>
>
> `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS)) ![the Settings icon](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.settings.svg)

> **Note:**
> This page describes control. For more information about using language injections, refer to [Language and reference injections](using-language-injections.html).

The dialog opens when you click ![the Add button](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.add.svg) on the [Language Injections](language-injections-settings.html) page, and choose Java Parameter from the context menu, or select an entry and click ![the Edit button](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.edit.svg).

Use this dialog to configure language injections for Java parameters. The dialog provides the ability to make use of IntelliLang's features, if, for any reason, the injection annotations cannot be used. This mainly applies to configuring third party/library methods as well as projects that still have to use Java 1.4.

| Item | Description |
| --- | --- |
| Language |    In this area, specify the language to inject and the injection context.       * ID: select the ID of the language to inject.    * Prefix: specify a prefix to make up the injection context.    * Suffix: specify a suffix to make up the injection context.     Note that the Prefix and Suffix fields are optional.    |
| Class Methods | Click ![the Browse button](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.general.ellipsis.svg) and select the class of interest. As a result, the methods of the class along with their parameters are shown.     Select the parameters for which you want to enable the injection.    |
| Advanced |     Specify additional settings.       * Value pattern: type a regular expression that determines the context to inject the language into. By using the first capturing group of the patterns as the target for injection, you can configure the procedure to have the language injected only into values that match a certain pattern or into multiple parts that match the pattern.    * Single file: If the option is off, the fragments that match the value pattern are treated separately, as different "files" - for example from the fragment editor's viewpoint. If the option is on, the corresponding fragments are all merged together to form a single unit, or "file". Given the value pattern `xxx (.+) yyy (.+) zzz` and the fragment `xxx select * yyy from family zzz`, `select *` and `from family` are treated as two independent fragments (or "files") if the option is off. If the option is on, `select * from family` is treated as a single unit or "file".    |

## How it works

* [Language and reference injections](using-language-injections.html)

## See also

### Concepts

[Language and reference injections](using-language-injections.html)

### Reference

[Language Injections](language-injections-settings.html)

