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

Join lines should not add a space (" ") character between joined lines #237241

Open
DanKaplanSES opened this issue Jan 3, 2025 · 0 comments
Open
Assignees

Comments

@DanKaplanSES
Copy link

In this GIF, I join two lines and highlight a space that was added between them.

Image

Here's my feature request: Don't add an extra space when joining lines.

Note: vim adds this space, intellij IDEA does not. IMHO, intellij IDEA's way is more useful and more flexible:

  1. If a space delimiter is desired:
    1. It's trivial to modify the original text prior to "join lines" to add spaces at the end of every line.
  2. If no delimiter is desired:
    1. vimscript can customize the join command to automatically remove the space it appends. The same can't be done in vscode (afaik).
    2. Currently, one would have to press the delete key between every "join line" command. This nearly doubles the keystrokes required.
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