7

I hate anything in any IDE that inserts anything that I haven't explicitly told it to. Accordingly, I've turned off all of the auto-complete and auto-insert I can find, but I cannot find out how to kill this for docstrings. I type """ and press Space and it puts this in, instead:

"""
"""

How can I turn this behaviour off?

jonrsharpe
  • 115,751
  • 26
  • 228
  • 437
Jack Aidley
  • 19,439
  • 7
  • 43
  • 70
  • I don't think you can. Per [the docs](https://www.jetbrains.com/pycharm/help/documenting-source-code-in-pycharm.html): *"In languages files, PyCharm creates stubs of documentation comments on typing the opening tag and pressing Enter."* - there is no mention of an **off** option. – jonrsharpe Mar 16 '15 at 16:01
  • It's under 'insert pair quote' – Peter Wood Mar 16 '15 at 16:05
  • 1
    It might be worth looking at the JetBrains support site to see if there are any relevant issues/bugs reported, or open one yourself. – jonrsharpe Mar 16 '15 at 16:23

2 Answers2

7

It's under:

Editor -> General -> Smart Keys

Uncheck Insert pair quote

Also uncheck Insert documentation comment stub

Peter Wood
  • 23,859
  • 5
  • 60
  • 99
0

Also try:

Settings : Editor : General : Smart Keys

Uncheck:

Add quotes for attribute value on typing '=' and attribute completion

You might want to turn off this as well:

Auto-close tag on typing '</'
Matt
  • 11
  • 1
  • Unfortunately, no, this does not resolve the problem. – Jack Aidley Dec 05 '17 at 10:24
  • 1
    Maybe it wasn't the correct answer to the question. But as the question was not what I was looking for, you answered exactly my question. Many thanks! This auto closing of tags, which were already close when I just wanted to add the opening tag, is so idiotic. – Michael S. Mar 11 '18 at 13:13