JSTool is the best for stability.
Steps:
- Select menu Plugins>Plugin Manager>Show Plugin Manager
- Check to JSTool checkbox > Install > Restart Notepad++
- Open js file > Plugins > JSTool > JSFormat

Reference:
- Homepage: http://www.sunjw.us/jstoolnpp/
- Source code: http://sourceforge.net/projects/jsminnpp/
JSTool is the best for stability.
Steps:
- Select menu Plugins>Plugin Manager>Show Plugin Manager
- Check to JSTool checkbox > Install > Restart Notepad++
- Open js file > Plugins > JSTool > JSFormat

Reference:
- Homepage: http://www.sunjw.us/jstoolnpp/
- Source code: http://sourceforge.net/projects/jsminnpp/
I think you want a code beautifier, this one looks quick and easy: http://jsbeautifier.org/
I'm working on a small node project so I am just using notepad++ since it is light weight.
It has JSTool's formatter but it adds extra indents sometimes.
request.on('end', function () {
let url_params = new URLSearchParams(body)
if (url_params.get('add')) {
break;
}
})why ident the if block after 'let'?
Doing some research, I've tried "linter" but I have not been able to figure out how to configure it properly. For example, it wants to point to 'eslint.cmd' which I cant find. I found one called "jN" but it totally messed up all of my code. I found another plugin called "JSLint" but it is not listed for notepad++ and I have not had any success trying to manually install it. Most questions/answers that I read about this are 5-10yrs old so maybe they are just outdated.

