0

After I commit a file, my IDE WebStorm changes the string 'We can\’t' to "We can’t" How can I prevent this ?

I already do Preferences -> Editor -> Code Style -> TypeScript -> Punctuation And put 'single' quotes 'always'

1 Answers1

0

Do you use Prettier for code reformatting? when being configured to use single quotes, it tends to minimize escaping, changing single quotes to double in such cases, see https://github.com/prettier/prettier/issues/3804#issuecomment-359961713

lena
  • 90,154
  • 11
  • 145
  • 150