Let's say you have an example.js
file open in SublimeText:
function foo(bar){a=1;b=2;for(var i=0;i<100;i++){console.log(i);};}
How to automatically have an indented code with SublimeText? such as:
function foo(bar) {
a=1;
b=2;
for (var i=0;i<100;i++) {
console.log(i);
};
}
I tried Edit > Line > Reindent or CTRL+SHIFT+P Reindent but it does nothing on this code. Why?
How is this possible without a third-party package requiring node.js installed (such as HTML-CSS-JS Prettify)?