How to Properly Edit Non-Java Strings (XML, JSON, and SQL) in Java Files [Video]

Sometimes, you want to have variables in Java that have complex HTML or JSON strings as their value. Editing these strings by hand is rather cumbersome. You have to make sure they are valid, and you get the quotation, escaping right, etc.

But, it doesn't have to be that way. IntelliJ offers nice features that make your life easier there, as displayed in this short episode.