Tips & Tricks

Edit HTML inside JavaScript Literals

It often happens that we need to edit HTML code inside JavaScript literals. And most of the time it is not something very pleasant, but not within Web IDE!

Here is a simple string…

But once we add '<' inside it, it becomes a superstring more than just a string and if you hit Ctrl+Space, you can see the difference. Yes, you get all HTML code assistance inside a JS literal!

You can of course complete tag attributes…

and do other things you do when you code HTML…

…including code completion, quick documentation, and navigation — for HTML, CSS and even JavaScript inside JavaScript literals.

Try it and let us know what you think!

Develop with pleasure!
-JetBrains Team

image description