Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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, Go, Svelte: " to ' to `
  • Any other files: " to '
  • Also available different start and end of wrap characters: </>, [/], «/» etc. (thanks to @dirondin )

IMPORTANT USABILITY NOTE: By design, what is selected will be ignored by the toggle logic. This allows dead-simple code and maximum user flexibility to select what needs to be excluded. So the toggle will start to find the matching from the start and end of the selection.

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": [["<",">"],["[","]"]]
  }
}

Upcoming

Credits

Self-centered promotion

About

Simple quote toggler that cycle through " ' and `

Resources

License

Packages

No packages published