Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Quote SwapperNew to Visual Studio Code? Get it now.
Quote Swapper

Quote Swapper

Angus McRitchie

|
1,325 installs
| (1) | Free
Select text and run this command to replace all single quotes with double quotes and all double quotes with single quotes.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Quote Swapper

This is a very simple extension that does one thing. It will swap single quotes to double quotes and vice versa.

Usage

How to use Quote Swapper

Explanation

Let's say you have the following code.

<?php

$text = 'Click me';
$button_html = '<div class="btn">{$text}</div>';
//_____________^___________^__^____🤦________^

And you want php to parse the variable $text inside the double quotes. You can do it by swapping the quotes.

Run the command "Swap Quotes" from the command palette and you will get:

<?php

$text = 'Click me';
$button_html = "<div class='btn'>{$text}</div>";
//_____________^___________^__^____🥳________^

Enjoy!

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