krasa / StringManipulation

IntelliJ plugin - https://plugins.jetbrains.com/plugin/2162
Apache License 2.0
694 stars 81 forks source link

extra blank lines #199

Closed gregcousin126 closed 1 year ago

gregcousin126 commented 1 year ago

Is it possible to create a function to be able to remove all extra blank lines and not all blank lines ? something like this : https://marketplace.visualstudio.com/items?itemName=rintoj.blank-line-organizer

Example :

// start of file

const Person = {
    item : "item"

}

person.item = "item 1"

// end of file

would end up being :

// start of file

const Person = {
    item : "item"

}

person.item = "item 1"

// end of file
krasa commented 1 year ago

in other words: Remove Consecutive Empty Lines?

krasa commented 1 year ago

You can try it StringManipulation.zip

gregcousin126 commented 1 year ago

Exactly, ok great, thanks for the fast response. I'll try it.

gregcousin126 commented 1 year ago

Would you know when you might be able to publish these changes to JetBrains plugin?

krasa commented 1 year ago

yes, now.