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

auto-pairs only and end-of-line option #12874

Open
eikenb opened this issue Feb 14, 2025 · 1 comment
Open

auto-pairs only and end-of-line option #12874

eikenb opened this issue Feb 14, 2025 · 1 comment
Labels
C-enhancement Category: Improvements

Comments

@eikenb
Copy link

eikenb commented Feb 14, 2025

I'd like auto-pairs to have an option to only do the auto-pair if we are at the end of the line (no more characters to the right aside from a newline). This makes it so you get the auto-pairing as you are typing new text but don't (in general) when you are editing existing text.

@eikenb eikenb added the C-enhancement Category: Improvements label Feb 14, 2025
@eikenb
Copy link
Author

eikenb commented Feb 19, 2025

I noticed when editing a Go file that if I type a " in the middle of code it generates the matching " but if I type a " in the middle of a comment it doesn't.

I also noticed when editing Markdown it works pretty much the way I want, with a single " if in the middle of a line and a paired "" when typed at the end of a line.

Is there a configuration setting I'm missing somewhere here to tweak this behavior?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: Improvements
Projects
None yet
Development

No branches or pull requests

1 participant