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

Multiple variable formatting at one time on VS Code

I have a js file which contains around 200 enums with names like –

abc
def
ghi
...

I want all these enums to be in uppercase rather than writing it again as it can cause typos.

Tried text.toUpperCase() but it will still give me only one output on vs code

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 :

  1. Select all your enum keys that you wish to uppercase using ctrl+d
  2. Then press ctrl+shift+p and type uppercase
  3. Press Enter

vs code dropdown

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