This intention replaces a double–quoted string "content" to the equivalent, single-quoted `content`.

Valid context

This intention is available on all double–quoted strings with static values.

A string with a variable reference, a subshell and other evaluated parts are excluded from this intention.

Transformation

Some parts of a double–quoted string need to be unescaped to represent the same value in a single-quoted string. For example, "\$noVariable" is transformed into '$noVariable'.

© 2020–2021 Joachim Ansorg
Imprint
Privacy Policy
Legal