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

Closing brackets in replace mode #6126

Open
nikpappas opened this issue Nov 26, 2020 · 1 comment · May be fixed by #6124
Open

Closing brackets in replace mode #6126

nikpappas opened this issue Nov 26, 2020 · 1 comment · May be fixed by #6124

Comments

@nikpappas
Copy link

Description

Most IDEs behave in a certain way when closing brackets and quotes.
Opening a bracket you automatically get the matching closing bracket, which is nice, but if you try to close the bracket manually you get a duplicate bracket. I think most people when writing brackets and quotes that don't contain anything, will by momentum immediately close the bracket themselves, or prefer to hit the closing bracket key than the right arrow, in order to get the cursor to the end of the line. That's why most IDE overwrite the matching closing bracket/quote, under certain circumstances.
example when I type the below code, I always end up going back end removing the extra brackets:
void setup(){} -> void setup()){}}

Expected Behavior

I would like when I type a closing bracket/quote immediately after an equivalent opening bracket, that the closing bracket to be overwritten.

Current Behavior

Typing the below void setup() one ends up with void setup()) and the cursor in the position second to last, which is a bit inconvenient. I do like the auto-closing brackets, and I wouldn't want to have to disable the feature.

Your Environment

  • Processing version: 3.5.4
  • Operating System and OS version: macOS 10.14.6
  • Other information:

Possible Causes / Solutions

@nikpappas nikpappas linked a pull request Nov 26, 2020 that will close this issue
@Umesh-JNU
Copy link

Hi,
I would like to contribute to it. May I know to how to start over.
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