lkrms / vscode-inifmt

Trim and squeeze spaces and empty lines
MIT License
9 stars 2 forks source link

should modify spaces before/after = #1

Open AndreyChursin opened 1 year ago

AndreyChursin commented 1 year ago

I think it should also modify spaces before/after = and make only 1 on each side, ex:

xdebug.mode=debug
xdebug.start_with_request = yes
xdebug.discover_client_host=1
; xdebug.idekey =   "VSCODE"

to

xdebug.mode = debug
xdebug.start_with_request = yes
xdebug.discover_client_host = 1
; xdebug.idekey = "VSCODE"
lkrms commented 7 months ago

I like this idea, but some .ini files require key=value syntax, so we can't enforce key = value. I'll try to incorporate this into user-configurable .ini-specific options in a future release. Thanks for the suggestion!