Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Intellij / WebStorm auto format quotes stopped working

I am using ts lint and its set to allow single quotes (') instead of double (").

I used to be able to use the reformat code shortcut CTRL-ALT-L and this would automatically swap all occurrences of " to ' in the file.

This has stopped working and I cant see a way to turn it back on in the settings… can anyone help?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Go to Preferences : Editor : Code Style : Typescript, to the Punctuation tab, then make sure you have Use single quotes always

Then reformat the file again (CTRL-ALT-L).

It may have stopped working because you switched code style schemes to one without the above setting.

You can do the same for Javascript to be consistent.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading