Even after 3 years of python programming, I still interchangeably write strings using either the single quotes or double quotes ('my string'
vs "my string"
). It seems that there is no single standard within the community, and I often see the two types of string in a same project.
Purely for the sake of consistency, I'd like to work with a single format from now on. I have found no options in PyCharm that enforces a single string style. I am looking for such a tool (or a way to achieve this in PyCharm alone), one that would replace a single-quote string by a double-quote one on typing, or vice-versa.
For now I am working with a simple regex, I run a search and replace operation on all project files when I am done working. The downsides is that it fails on edge cases and it is not automatic.