Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve JavaScript line comments - ignore empty lines #237

Open
dndrsn opened this issue Sep 28, 2019 · 0 comments
Open

Improve JavaScript line comments - ignore empty lines #237

dndrsn opened this issue Sep 28, 2019 · 0 comments

Comments

@dndrsn
Copy link

dndrsn commented Sep 28, 2019

When commenting out multiple lines with line comments (cmd + /), empty lines in the selection will get comments and the space on those lines will affect the indent level of the comments. For example this...

image
image

If the line in the middle has whitespace the indent of the comments is better...

image
image

Ideally, the whitespace only lines would be completely ignored and no comments would be added to the empty lines at all. It appears to be an issue with the core Sublime JS syntax. Other syntaxes like C# don't have this issue. If the syntax is changed to C#...

image
image

Which, to me, is ideal. Would be great to fix this behavior if possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants