Inject a Language

Language injections let you work with pieces of code in other languages embedded in your code.

Injecting a language such as HTML, CSS, XML, RegExp, and so on into a string literal gives you code assistance for editing that literal including code completion and validation (such as RegExp).

Use ⌥⏎ (macOS) / Alt+Enter (Windows/Linux) to inject a language or reference.


Related Resources

Pattern Matching for Switch
Pattern Matching for Switch
This feature is available in preview from Java 17.
Migrating from the `javax` to `jakarta` namespace
Migrating from the `javax` to `jakarta` namespace
How to transition your application from Java EE to Jakarta EE.
Create an Editor Fold
Create an Editor Fold
Create an editor fold to hide parts of your class which can make it more readable.