Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

reindent(reformat) minimized jquery/javascript file in visual studio

I have downloaded a minimized jquery plugin file and need to do some customization as per my project requirements. I am using Visual Studio 2010. And because the file is minimized, it is becoming very difficult to debug it or perform any modifications. Is there a way i can reformat the js file?

Thanks

like image 617
user979189 Avatar asked Dec 20 '11 20:12

user979189


2 Answers

You can add the formatting back by going to http://jsfiddle.net, pasting the code into the javascript pane, and then clicking Tidy Up at the top.

like image 174
Kevin B Avatar answered Nov 17 '22 19:11

Kevin B


You can use jsbeautifier.org for javascript beautification. It also decode Dean Edward's packer.

Also in Visual Studio you can use this shortcut: ctrl+K, ctrl+D

like image 5
Emre Erkan Avatar answered Nov 17 '22 18:11

Emre Erkan