intellij-ideapycharm

Unable to disable smart quotes in Pycharm


I want to change

            order_by_col = entity.orderByColumns

to

            order_by_col = entity["orderByColumns"]

(note there are dozens of these)

But instead the dreaded "smart typing" comes into play and pycharm does this to me after typing the first ":

order_by_col = entity["."]orderByColumns

I had turned off smart-quotes ages ago:

enter image description here

Why doesn't that do the trick? How do I tell Pycharm to stop interfering here?

Update I added intellij-idea tag since presumably the behavior would be similar?


Solution

  • This appears to be a macos-wide setting:

    https://bear.app/faq/how-to-disable-smart-quotes-and-dashes/#:~:text=Mac%20users%20can%20also%20disable,Use%20smart%20quotes%20and%20dashes.%E2%80%9D

    Disable smart quotes on Mac The first option for users of Bear for Mac is to disable smart quotes within Bear. While editing a note, simply go to Edit > Substitutions and click to disable Smart Quotes.

    Mac users can also disable smart quotes system-wide by visiting Apple  Menu > System Settings… > Keyboard > Text Input > Input Sources - Edit…, then unchecking “Use smart quotes and dashes.”

    I did disable it in that dialog as seen at the bottom:

    enter image description here