I have some JavaScript code that is written in one line (no carriage returns), it's completely unreadable...
With Notepad++, I tried to replace these characters ({
, }
, ;
) by themselves plus a carriage return, but it still isn't very handy...
Is there a way to do this correctly in Notepad++?
If you are a beginner and want to go for a simple approach for writing JavaScript programs, use a simple text editor like Notepad++. It is free, open-source, and will work fine for JavaScript development. Notepad++ is a general-purpose editor that supports highlights the syntax of JavaScript and HTML code.
You need to enable "Auto-indent". Show activity on this post. You can use a plugin (IndentByFold).
JSTool is the best for stability.
Steps:
Reference:
I think you want a code beautifier, this one looks quick and easy: http://jsbeautifier.org/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With