Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Toggle QuotesNew to Visual Studio Code? Get it now.

Toggle Quotes

BriteSnow

|
53,279 installs
| (21) | Free
Toggle cycle " -> ' -> `
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info
logo

Toggle Quotes VSCode Extension

cmd ' (ctrl ' on win/linux) will cycle the first quote pair found (from the start/end of the section) through the following sequence:

  • Typescript, JavaScript, Markdown: " to ' to `
  • Any other files: " to '
  • Also available different start and end of wrap characters: </>, [/], «/» etc. (thanks to @dirondin )

Customizable, see below.

Features

  • Typescript, JavaScript, Markdown, JSX (since 0.3.2, thanks to @evaera) toggles: " to ' to `
  • Any other file type toggles: " to '
  • Works with multi-select.
  • Text in selection will be ignored.
  • Per languageId Customization (new in 0.2.0)
"configurationDefaults": {          
  "[csharp]": {
    "togglequotes.chars": ["\"","'","`"]
  },
  "[freemarker]": {
    "togglequotes.chars": [["<",">"],["[","]"]]
  }
}
  • Ignore escaped quotes (new in 0.3.0)

Upcoming

  • Add a command "Toggle Quotes: Within", allow to change default (#22)
  • Multiline support (#5)
  • Not sure if suitable: Escape apostrophes if present (#3)

Credits

  • @dirondin - for the start and end wrap characters support
  • @will-stone - for the icon

Self-centered promotion

  • Big App, Small Team YouTube Channel. New dev channel about #RuntimeFirst code-design approaches (v.s., Framework centric approaches). Starting with some Native Web Components best practices (v.s., React, Angular), and will eventually cover full-stack development and DevOps with simple and scalable best practices for Node.js, docker, and Kubernetes. #SimpleScalesBetter (feedback welcome on YouTube videos or Big App, Small Team, discord server)
  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2019 Microsoft