Home > Development Tools > VSCode > 5 plug-ins in VSCode that make refactoring easy (share)

5 plug-ins in VSCode that make refactoring easy (share)

青灯夜游
Release: 2021-07-26 11:12:17
forward
7059 people have browsed it

This article will share with you 5 VSCode plug-ins that make refactoring easy. They can help users clean up code, reduce complexity and improve functions, and can improve development efficiency. Let’s take a look. !

5 plug-ins in VSCode that make refactoring easy (share)

If you're looking for ways to clean up your code, reduce complexity, and improve functionality - these refactoring extensions will help you move forward faster. [Recommended learning: "vscode tutorial"]


1. SonarLint

SonarLint allows you to fix coding problems before they occur : Like a spell checker, SonarLint highlights errors and security holes as you write code and provides clear remediation guidance so you can fix them before your code is committed. SonarLint in VS Code supports analyzing JavaScript, TypeScript, Python, Java, HTML, and PHP code.

5 plug-ins in VSCode that make refactoring easy (share)

2. JavaScript Booster

JavaScript Booster is a code reconstruction tool with a variety of encoding operations, such as changing var Convert to const or let, remove redundant else statements, and merge declaration and initialization. Just pay attention to the light bulb on the left and press it to learn how to convert the code under the cursor.

5 plug-ins in VSCode that make refactoring easy (share)

3. Stepsize

Stepsize Allows you to bookmark and report on technical debt and code to be refactored. If you come across code that needs refactoring but don't have time to do it immediately, you can make it visible and raise an issue directly in VS Code.

  • Bookmark your code as you work and create issues
  • Mark your issues
  • Take them to sprint planning meetings and share knowledge with your teammates

5 plug-ins in VSCode that make refactoring easy (share)

##Gif address: https://p3-juejin. byteimg.com/tos-cn-i-k3u1fbpfcp/9fdd067b488d45f5ab4bc7c071ae76d5~tplv-k3u1fbpfcp-watermark.image

4. Abracadabra

Using

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

VS Code comes with some basic refactorings. Abracadabra supercharges your editor with shortcuts to instantly trigger the most useful shortcuts, quick fixes to suggest refactorings when appropriate, options to customize the UX to your needs, work with .js, .jsx, .ts, .tsx and .vue files.

5 plug-ins in VSCode that make refactoring easy (share)

5. Glean

Glean provides refactoring tools for your React codebase: Extract JSX into a new component , convert class components into functional components and use Hooks for packaging. It allows extracting JSX into new components, converting class components into functional components and vice versa, wrapping JSX with conditionals, while renaming state variables and their setters, and much more.

5 plug-ins in VSCode that make refactoring easy (share)

For more programming-related knowledge, please visit:

Introduction to Programming! !

The above is the detailed content of 5 plug-ins in VSCode that make refactoring easy (share). For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:掘金--海拥
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template