reindent(reformat) minimized jquery/javascript fil

2019-06-22 07:19发布

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

3条回答
爷、活的狠高调
2楼-- · 2019-06-22 07:43

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

查看更多
一夜七次
3楼-- · 2019-06-22 07:53

You should be able to reformat javascript in Visual Studio. Open the javascript file, and select Edit | Advanced | Format Document or Format Selection.

查看更多
Juvenile、少年°
4楼-- · 2019-06-22 07:57

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.

查看更多
登录 后发表回答