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.


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–2022 Joachim Ansorg
Privacy Policy