I am looking for a formatting/indetation tool for sublime text 2, which on ctrl+s
turns the following code
if(a==2){b=a+2;}
to something like
if(a == 2) {
b = a + 2;
}
I can't find anything useful. Please help.
I have worked around an easy solution for my code indentation/formatting problem. I am using an online formatting tool JSBeautifier. I just copy my whole code and paste it in jsbeautifier and after it formats my code I copy my formatted code and paste it back to my js file.