it-crowd / pom-sorter

Plugin for IntelliJ Idea to sort pom.xml
4 stars 9 forks source link

Blank lines #13

Open eekboom opened 11 years ago

eekboom commented 11 years ago

It would be great to have a way to configure blank lines in between certain tags.

I think there could just be a seperate button to add one to the list of tags. Moving it up and down and deleting it could work just the same as for tag items in the list.

blabno commented 11 years ago

Could you explain in details what do you mean by "it" in phrase "Moving it up and down and deleting it"?

eekboom commented 11 years ago

Oh, I guess that description wasn't really understandable.

Have a look at one of the standard settings panels in IDEA: File > Settings > Code Style > Java > Imports There is a button "+\n" that adds a new special "blank line" item to the list. That item in the list can then be moved up/down or deleted again just like the other items.

That was what I was thinking of when I created this issue.

blabno commented 11 years ago

The list of tags is not sorted anyhow so there would have to be separate field "number of newlines before". Let's see if we get any votes on this feature.

eekboom commented 11 years ago

I meant the list that is associated to the "Fixed order" option on the right side of the POM sorter settings. Of course, that's only a partial solution and does not help if you select another sorting type.

Hm, ...

dcsobral commented 9 years ago

I was about to ask for that. Even the recommended ordering includes new lines at specific points.