5 Best VS Code Extensions for Refactoring that Every Dev Should Know by@alex-omeyer

5 Best VS Code Extensions for Refactoring that Every Dev Should Know

July 7th 2021 1,163 reads
Read on Terminal Reader
Open TLDR
react to story with heart
react to story with light
react to story with boat
react to story with money
Abracadabra supercharges your editor with shortcuts to trigger the most useful ones in no time. SonarLint highlights Bugs and Security Vulnerabilities as you write code, with clear remediation guidance so you can fix them before the code is even committed. JavaScript Booster is a code refactoring tool that features several coding actions such as converting var to const or let, removing redundant else statements, and merging declaration and initialization. Glean is a tool for extracting JSX into new components, converting Class Components to Functional Components and vice-verse.
image
Alex Omeyer HackerNoon profile picture

Alex Omeyer

Co-founder & CEO at stepsize.com, SaaS to measure & manage technical debt

twitter social iconlinkedin social icon

If you’re looking at ways to clean up our code, reduce complexity and improve functionality - these refactoring extensions will help you move faster.


1. JavaScript Booster

JavaScript Booster is a code refactoring tool that features several coding actions such as converting var to const or let, removing redundant else statements, and merging declaration and initialization. Just note the light bulb at the left and press it to learn how you can transform the code under the cursor.

image

2. Stepsize

Stepsize allows you to bookmark and report technical debt and code to refactor. If you come across code that requires refactoring but you don’t have time to do it right away you can make it visible and raise an issue directly in VS Code.

  • Bookmark code while you work & create issues
  • Label your issues
  • Take them to sprint planning meetings & share knowledge with your teammates

image

3. Abracadabra, refactor this!

With Abracadabra, you can quickly and safely refactor existing code in VS Code.

VS Code ships with a few basic refactorings. Abracadabra supercharges your editor with shortcuts to trigger the most useful ones in no time, quick fixes to suggest refactorings when appropriate, options to customize the UX to your needs, refactorings that work with .js, .jsx, .ts, .tsx and .vue files.

image

4. Glean

Glean provides refactoring tools for your React codebase: extract JSX into a new component, convert Class Components to Functional Components, wrapping with Hooks. It allows extracting JSX into new components, converting Class Components to Functional Components and vice-verse, wrapping JSX with conditional, renaming state variables and their setters simultaneously, and more.


image

5. SonarLint

SonarLint lets you fix coding issues before they exist: like a spell checker, SonarLint highlights Bugs and Security Vulnerabilities as you write code, with clear remediation guidance so you can fix them before the code is even committed. SonarLint in VS Code supports analysis of JavaScript, TypeScript, Python, Java, HTML & PHP code.


image

Also published on: https://dev.to/alexomeyer/5-vs-code-extensions-that-make-refactoring-easy-1ccb

react to story with heart
react to story with light
react to story with boat
react to story with money
L O A D I N G
. . . comments & more!