Search code examples
indentationreformat

Is there an editor to autoindent / add spaces in existing code?


I have some JavaScript code which I want to make more readable. However, due to the amount of code I want to use a tool which does this automatically for me.

  • Are there such tools already available or do I have to manually perform some "find/replace-alls"?

The code which I want to convert is written on a single line without spaces.


Solution

  • Quick search found http://jsbeautifier.org/ which seems to do what you are looking for online.
    Search terms: javascript beautifier