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

Disabling removal of whitespace on the current empty line on save #60

Open
gabrielecirulli opened this issue Jul 31, 2013 · 2 comments
Open

Comments

@gabrielecirulli
Copy link

Hey, apologies if this issue has already come up in the past but I really can't find a solution using the available settings.

I often find myself opening a new block (say a function) and going to a new line where there's only really the indentation. I will then switch the window to my browser and, since I have automatic saving enabled, it'll save and trim whitespace, including the indentation on the current line which is needed for me to be able to write the code inside the function later.
I tried "trailing_spaces_include_empty_lines": false but at that point it'll ignore all empty lines, which is not what I want because I'd like empty lines with stray indentation to be removed correctly.

Is there a way to make it ignore the current line if it's empty but only because I have my cursor on it, and delete all other empty lines?

@randy3k
Copy link
Member

randy3k commented Jun 16, 2014

+1 for this.

@randy3k
Copy link
Member

randy3k commented Jul 26, 2014

I have written Whitespace which supports it.

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

No branches or pull requests

2 participants