Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Unify QuotesNew to Visual Studio Code? Get it now.
Unify Quotes

Unify Quotes

lalten

|
1,196 installs
| (2) | Free
Modifies strings to all use the same quote where possible.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-unify

CI status Visual Studio Marketplace Version

https://marketplace.visualstudio.com/items?itemName=lalten.vscode-unify

A VS Code Extension to modify a file's Python strings to use the same quote where possible. Uses https://github.com/myint/unify under the hood.

Features

Open the file that you want to format and execute the "Unify Quotes" command from the Command Palette (Ctrl+Shift+P).

You could also set up your own keybinding or even execute the Unify Quotes command together with other formatters (e.g. python.sortImports, editor.action.formatDocument) through multi-command.

Requirements

You need to have unify installed for the currently selected Python interpreter:

pip install unify

Extension Settings

This extension contributes the following settings:

  • unify.path: path to unify executeable (default is just unify)
  • unify.preferredQuote: quote to prefer: '(default), or "

Known Issues

If unify is not installed, the extension will fail.

Feel free to report bugs and send pull requests at https://github.com/lalten/vscode-unify.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft