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

Add br…


This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by Daniel Bellmas

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


This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by Daniel Bellmas


Print Share Comment Cite Upload Translate Updates
APA

Daniel Bellmas | Sciencx (2022-09-25T07:23:24+00:00) Productivity Boost with Cmd+. / Ctrl+.. Retrieved from https://www.scien.cx/2022/09/25/productivity-boost-with-cmd-ctrl/

MLA
" » Productivity Boost with Cmd+. / Ctrl+.." Daniel Bellmas | Sciencx - Sunday September 25, 2022, https://www.scien.cx/2022/09/25/productivity-boost-with-cmd-ctrl/
HARVARD
Daniel Bellmas | Sciencx Sunday September 25, 2022 » Productivity Boost with Cmd+. / Ctrl+.., viewed ,<https://www.scien.cx/2022/09/25/productivity-boost-with-cmd-ctrl/>
VANCOUVER
Daniel Bellmas | Sciencx - » Productivity Boost with Cmd+. / Ctrl+.. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/09/25/productivity-boost-with-cmd-ctrl/
CHICAGO
" » Productivity Boost with Cmd+. / Ctrl+.." Daniel Bellmas | Sciencx - Accessed . https://www.scien.cx/2022/09/25/productivity-boost-with-cmd-ctrl/
IEEE
" » Productivity Boost with Cmd+. / Ctrl+.." Daniel Bellmas | Sciencx [Online]. Available: https://www.scien.cx/2022/09/25/productivity-boost-with-cmd-ctrl/. [Accessed: ]
rf:citation
» Productivity Boost with Cmd+. / Ctrl+. | Daniel Bellmas | Sciencx | https://www.scien.cx/2022/09/25/productivity-boost-with-cmd-ctrl/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.