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

Add a editor.action.insertFinalNewLine command #241075

Closed
SunsetTechuila opened this issue Feb 18, 2025 · 0 comments · Fixed by #241126
Closed

Add a editor.action.insertFinalNewLine command #241075

SunsetTechuila opened this issue Feb 18, 2025 · 0 comments · Fixed by #241126
Assignees
Labels
feature-request Request for new features or functionality insiders-released Patch has been released in VS Code Insiders
Milestone

Comments

@SunsetTechuila
Copy link
Contributor

There is already the editor.action.trimTrailingWhitespace command, which can be used with the parameter reason: 'auto-save' to trim trailing whitespace without moving the cursor position. Same thing for inserting final newline would be very useful.

Would allow to properly fix editorconfig/editorconfig-vscode#330

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality insiders-released Patch has been released in VS Code Insiders
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants