sunjw / jstoolnpp

A JavaScript (JSON) tool for Notepad++ (formerly JSMinNpp) and Visual Studio Code.
GNU General Public License v2.0
284 stars 24 forks source link

[Feature Request] curly braces on their own line option #128

Closed Owyn closed 2 years ago

Owyn commented 2 years ago

current output:

fuunction(){
    // stuff
}

What I want:

fuunction()
{
    // stuff
}
sunjw commented 2 years ago

It used to have this feature, but removed in 1.2111.0. Because I cannot keep this feature in a good quality (cannot produce good output, and cannot find enough test cases).

Owyn commented 2 years ago

If you need reference how it could be done in good quality without issues - you could see https://github.com/beautify-web/js-beautify/

sunjw commented 2 years ago

Duplicated to #114