vscode-nginx-conf icon indicating copy to clipboard operation
vscode-nginx-conf copied to clipboard

Do not remove empty lines

Open binarykitchen opened this issue 1 year ago • 0 comments

Nice extension, thanks for that.

Just one issue I'd like to raise: it removes empty lines too much.

For example:

# some examle
proxy_buffers           288 224k;

# some example
proxy_buffer_size       6144;

# some example
set                     $proxyCacheByPass 1;

But your extension makes it harder to read, it removes all the empty lines to:

# some examle
proxy_buffers           288 224k;
# some example
proxy_buffer_size       6144;
# some example
set                     $proxyCacheByPass 1;

Please do not remove empty lines. Empty lines help us developers to separate issues, our eyes are tired looking at the computer monitor every day.

** Env configuration **

  • Your VS Code Version: 1.92.2
  • Your OS Version: ArchLinux 6.10.6-arch1-1
  • Is this extension running on VS Code Remote: No, locally

I can think of two solutions: (a) Add an empty line before each comment; or (b) Implement a new option to configure this.

Thanks

binarykitchen avatar Aug 29 '24 07:08 binarykitchen