maksimr/vim-jsbeautify

How to disable --extra_liners option?

afdallah opened this issue · 5 comments

According to the js-beautify help documentation, there is an option named --extra_liners that will create an extra line before html, head, and body tags. That option is set to true by default, how to disable them? Thanks for the help!

Gif

Try set in your .editorconfig

[**.html]
extra_liners=false

Thanks

Hi @maksimr I have tried your suggestion, but it seems like it didn't work.

i added extra_liners=false to my .editorconfig located in home directory ~/.editorconfig and in the project directory.

Gif

@afdallah I have looked at the js-beautify code and I see that extra_liners can accept array or string so you can write something like this:

extra_liners = ""

or

extra_liners = []

I have checked it should work

Thanks

@maksimr It works perfectly. Sorry for my stupid question.
Thanks for the help!

@afdallah no problem :)