Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>JS Quotes ChangerNew to Visual Studio Code? Get it now.
JS Quotes Changer

JS Quotes Changer

Siva Chandran

|
324 installs
| (0) | Free
Changes a pair of single quote to double quote in a js file.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

JS Quotes Changer

Description

It changes a pair of single quote to double quote in a js file.

Why JS Quotes Changer

Consistency and uniformity plays a major role in code readability. It is important to code in a consistent way and maintain uniformity throughout the code. Having a string with double quote at one line and single quote at another line spoils code readabilitiy. Using "JS Quotes Changer", this problem can be solved and our code can be made more consistent and uniform.

Working

  • Works only in .js files.
  • Converts only when a pair of single quote is present in a single line.
  • Converts only when a pair of single quote is not nested inside double quotes.
  • Converts only when there are no escape sequence before any of the single quotes.

Usage

In any .js file right click on the editor to see the option "use js-quotes-changer" in this file".

Rightclick image

Example 1

Before

Example image

After

Example image

Example 2

Before

Example image

After

Example image

Version 1.0.1

Initail release.

For additional reference visit this blog.

Developed by Siva Chandran.

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