Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smart quotes do not work correctly with f-string #1261

Open
bartv opened this issue Jul 7, 2023 · 0 comments
Open

Smart quotes do not work correctly with f-string #1261

bartv opened this issue Jul 7, 2023 · 0 comments
Labels
usability This ticket is related to improved usability

Comments

@bartv
Copy link
Contributor

bartv commented Jul 7, 2023

When you write a string you type " and vscode already adds the closing quote.

When you write an f-string you write f" and vscode does not add a closing quote. When you then add " it will add an additional quote which vscode thinks is the closing quote. The result is f""" which is a syntax error and requires to delete the extra closing quote.

@sanderr sanderr added the usability This ticket is related to improved usability label Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
usability This ticket is related to improved usability
Projects
None yet
Development

No branches or pull requests

2 participants