What are people using for editting templates in Polymer 3? I've tried both intelliJ and vscode (along with their respective plugins) and in both cases I get no syntax highlighting or autoplete for content within the backticks of static get template() { return html
}
.
Do I just have things configured incorrectly? What are others using?
What are people using for editting templates in Polymer 3? I've tried both intelliJ and vscode (along with their respective plugins) and in both cases I get no syntax highlighting or autoplete for content within the backticks of static get template() { return html
}
.
Do I just have things configured incorrectly? What are others using?
I use visual studio code and the following extensions to achieve this:
As a side note I have also found the following extensions to be very helpful when developing polymer apps:
Regarding the JetBrains family, Language Injections capability handles automatically code assistance inside template literals. This should also work in IntelliJ. If you set up everything correctly (see here) and it still doesn't work, try to manually inject html in you template literals by placing the cursor between the backticks, pressing Alt + Enter and selecting Inject language or reference > HTML.
Note that for web projects you might also consider using WebStorm instead of IntelliJ.
VSCode doesn't handle automatically template literals code injection but for your case there are: