What version of Notepad ++ and NPPAutoIndent are you using? I am using Notepad ++ version 5.8.7 and NPPAutoIndent version 1.2. I am not familiar with how the plugin should work, but I think I have an auto industry to work with.
First, open "Settings" - "Settings" - "Miscellaneous" and make sure that Auto-indent is not checked. Then go to Plugins-> NPPAutoIndent and make sure Smart Indent is selected. Once this is done, I get this indentation when I press Return after each line:
function test() { return "Test"; }
It looks like this:
function test() { return "Test"; }
I hope this helps.
source share