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

Optimize behaviors for inserting quotes and brackets #2959

Closed
Lorilandly opened this issue Jan 30, 2022 · 1 comment · Fixed by #2960
Closed

Optimize behaviors for inserting quotes and brackets #2959

Lorilandly opened this issue Jan 30, 2022 · 1 comment · Fixed by #2960

Comments

@Lorilandly
Copy link
Contributor

Lorilandly commented Jan 30, 2022

Describe your feature request

When inserting quotes, a pair of it will be automatically inserted

SpongeBob said    // press "
SpongeBob said "" // a pair of it inserted

This behavior is convenient, but not always. For example

print hello!
      ^          // want to insert parenthesis here
print ()hello!   // this happens
       ^         // then I press `del` to remove one of the parenthesis
print hello!     // both parenthesis disappears???

My suggestion is that a pair of quotes/brackets should only be inserted only if it is at the end of a sentence or if it is in front of a space. If the cursor is in front of a character, only a single quote/bracket should be inserted.

What problem does this feature solve? [optional]

see above

Additional context [optional]

@YalandHong
Copy link

Dup of #2534. Please consider adding #2534 to your fixed tickets. Thanks!

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

Successfully merging a pull request may close this issue.

2 participants