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

Create Arrow Functions in One Click
Create Arrow Functions in One Click
WebStorm can help you add arrow functions to your code.
Show CSS Color Preview
Show CSS Color Preview
How to display a CSS color in the background in WebStorm.
Clean Up Messy Imports With Optimize Imports
Clean Up Messy Imports With Optimize Imports
Quickly remove any unused imports and more.