Using Language Injections

Swiftly inject a piece of code in a different language.

Want to inject a code fragment in a language different from the main language of the file, like an HTML string in a JavaScript file? Press ⌥⏎ (macOS) / Alt+Enter (Windows/Linux), select Inject Language or Reference, and then pick a language from the list.


Related Resources

Comment Out Code
Comment Out Code
Quickly comment/uncomment blocks and lines.
Reformat Your Code
Reformat Your Code
Reformat a specific piece of code or the whole file according to your preferences.
Edit Text in Multiple Places At Once
Edit Text in Multiple Places At Once
How to use multiple cursors to code faster in JetBrains IDEs.