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

How to use hotkeys to add a pair of curley brackets around a variable in visual studio?

In Javascript/ Typescript, because I need modify all default import to be non-default import, I need to add curly brackets around the original import efficiently for these are modifications in a large scale.

originally,

import UserComponent from './someFile'

and becomes

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

import {UserComponent} from './someFile'

Are there any hotkeys to add automatically the close curly bracket when I enter the open curly bracket?

>Solution :

No
But you can select text and simple press "Shift + { " To add brackets

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