How to disable bracket removal

Hello,

I have the problem that I want to disable a "feature" that I can not name. Basically whenever I want to insert a bracket in front of another bracket PyCharm just goes "I guess I don't need the old bracket then" and removes it. This leaves me with exactly the same number of brackets as before. And very frustrated.

I dabbled with stuff like Lisp in the 00s so I kind of got a third sense on how many brackets I gonna need and often place them before I write the rest of the code. Wired, I know but it is super helpful for me. Also I do not watch the screen when I code so usually this ends with a bunch of missing brackets.

Anyone out there who can tell me how I can fix that?

0
2 comments

Hi, not sure what do you mean. Are you talking about closing brackets? Auto paired brackets? Just in case this is what you mean, you can disable paired brackets in [File | Settings | Editor | General | Smart Keys]

If not, I guess a screenshot with desired and actual results would do much better at demonstrating the issue.

0
Avatar
Permanently deleted user

For the sake of history:

I've stumbled upon the same issue in Clojure using Cursive plugin. Apparently it uses different engines of smart bracket formatting. You can see them in Settings -> Editor -> General -> Smart Keys -> Clojure. 

By setting Structural editing style to None one can remove smart bracker handling alltogether. However, digging more into it, I've found Parinfer Smart mode (NOT the default mode) is quite comfortable for my use.

You can check out the idea of Parinfer here https://shaunlebron.github.io/parinfer/

0

Please sign in to leave a comment.