Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 718 Bytes

README.md

File metadata and controls

33 lines (21 loc) · 718 Bytes

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!