Intellij Language Injection

Pressing Alt+Enter in Intellij in random places is sometimes beneficial. Today I’ve found a feature which has been built in Intellij since version 6.
So, Alt+Enter on String and I could inject a language… Nothing popped up in my mind.
inject… language… a list with languages is displayed… chose Java and I got Java validation in String literal.

That’s good. You can read more about it at JetBrains Confluence site.

Tagged with: ,
Posted in Uncategorized

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>