Search code examples
javascriptintellij-idea

How to reformat Javascript file in IntelliJ IDEA 2022.3.1 (Community Edition)


I am using IntelliJ IDEA 2022.3.1 (Community Edition) for my web development and missing the feature of javascript reformat code. It seems to be not working at all for javascript however working for Java and HTML files. Is there any free plugin or some other way to achieve this?

enter image description here


Solution

  • WebCalm is a free IntelliJ plugin that adds JavaScript and CSS support. It can do the formatting but it's not perfect.

    Disclaimer: I'm the developer of the plugin.