Sublime Forum

Python f-strings prevent matching quote insertion

#1

Typically, when I’m typing along in a Python script in Sublime Text, I type an open quote and the closing quote automatically appears (the pipe | character below indicates the position of my cursor):

"|"    <-- Closing quote automatically inserted after typing open quote

However, the closing quote doesn’t get inserted if I precede the string with the letter f (indicating an f-string for Python 3.6+):

f"|    <-- Note there's no closing double quote

Is there any way to adjust this behavior, or is it an editor bug?

0 Likes

#2
0 Likes

#3

Do you happen to know if this patch is in build 3179 (seeing as that build was released in October)? The patch appears to have been merged into master back in June…

0 Likes