Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
September 25, 2022 07:23 am GMT

Productivity Boost with Cmd. / Ctrl.

The light bulb icon means that VS Code found a possibility to refactor the code. It can be accessed by pressing Cmd+. / Ctrl+.

There are many more little quick fixes, but here are some I frequently use:

Remove braces

Remove braces

Add braces

Add braces

Extract to a constant/function

Extract to a constant

Extract Type/Interface

Extract Type/Interface

Remove unused imports

There are many more little quick fixes options.

Add a missing import

Add a missing import

Add all missing imports

Add all missing imports

Convert then to async await

Convert then to async await

Bonus Productivity Tip

By pressing F2, the variable's name will be changed everywhere it is referenced.

Renaming


Original Link: https://dev.to/danielbellmas/productivity-boost-with-cmd-ctrl-1nh8

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To