Home  >  Article  >  Development Tools  >  Advanced VSCode extension that improves JavaScript development efficiency!

Advanced VSCode extension that improves JavaScript development efficiency!

青灯夜游
青灯夜游forward
2019-11-19 09:31:133293browse

Today, Visual Studio Code is undoubtedly the most popular lightweight code editor. The power of VS Code undoubtedly comes from its plug-in market. Thanks to the open source community, VS Code now supports almost every programming language, framework, and development technology.

There are various ways to provide this support, mainly including providing code snippets, syntax highlighting, Emmet and smart prompt functions for specific technologies.

Advanced VSCode extension that improves JavaScript development efficiency!

The following article recommends several advanced VSCode extensions to improve JavaScript development efficiency!

Quokka.js

Quokka.js is a live code platform for JavaScript and TypeScript. This means that it will run the code you enter in real time and display various execution results in the editor. It is recommended to try it yourself.

Advanced VSCode extension that improves JavaScript development efficiency!

After installing this extension you can press Ctrl/Cmd (⌘) Shift P to display the editor's command palette, then type Quokka to see what's available List of commands. Select and run the "New JavaScript File" command. You can also press (⌘ K J) to open the file directly. Anything entered in this file is executed immediately.

Advanced VSCode extension that improves JavaScript development efficiency!

Quokka.js similar extension –

  • Code Runner – supports multiple languages ​​like C , C, Java, JavaScript, PHP, Python, Perl, Perl 6, etc.

  • Runner

Bracket Pair Colorizer and Indent Rainbow

Cure braces and parentheses are an integral part of many programming languages. In languages ​​​​such as JavaScript, there may be multiple levels of nesting of curly braces and parentheses in a screen of code, and some brackets are not very It is easy to identify which one corresponds to which, but there is no easy way to identify the correspondence between these brackets.

Bracket Pair Colorizer and Indent Rainbow. These are two different extensions. However, they work like a couple and work perfectly together. These extensions will add a range of colors to your editor and make code blocks easy to spot, and once you get used to them, VSCode will feel bland without them.

Without brackets Pair Colorizer and Indent Rainbow

Advanced VSCode extension that improves JavaScript development efficiency!

##Use brackets After pairing colorizer (Bracket Pair Colorizer) and rainbow indent (Indent Rainbow)

Advanced VSCode extension that improves JavaScript development efficiency!

snippets(code snippets)

Code snippets are shortcodes in the editor. So instead of 'import React from ', you can type imr and press Tab to expand the snippet. Similarly, clg becomes console.log.

There are many code snippets for various frameworks and libraries: Javascript, React, Redux, Angular, Vue, Jest. I personally find Javascript snippets very useful since I mostly work with JS.

Some good code snippet extensions –

  • JavaScript (ES6) code snippets

  • React-Native/React/Redux snippets for es6/es7

  • ##React Standard Style code snippets

TODO Highlight

Often when coding, you think there might be a better way to perform the same operation. At this time you leave a comment // TODO: needs to be refactored or other related things. But it's easy to forget this comment and push your code to master or production. But if you use Todo Highlighter, it will highlight it and make it easier for you to see the annotation.

It highlights "TODO/FIXME" or any other comments in the code in bright colors so that it is always clearly visible. Another nice feature is List Highlighted annotations, which lists all TODOs in the console.

Advanced VSCode extension that improves JavaScript development efficiency!

Use extensions like Todo Highlighter –

  • Todo — More powerful Todo Highlight extension with more features.

  • Todo Parser

Import Cost

This extension allows you It helps a lot with bundlers in Webpack to see the size of imported modules, you can see if you are importing the entire library or just specific utilities.

Advanced VSCode extension that improves JavaScript development efficiency!

REST Client

As web developers, we often need to use REST api. To check the url and check the response, tools like Postman are used. But why use a different application when the editor can easily accomplish the same task? REST Client It allows you to send HTTP requests and view the responses directly in Visual Studio Code.

Advanced VSCode extension that improves JavaScript development efficiency!

Auto Close Tag and Auto Rename Tag

Since the emergence of React and Since it gained traction over the past few years, html-like syntax in the form of JSX is now very popular. We also have to code using JavaScript tags. Any web developer will tell you that entering tags is a pain. In most cases, we need a tool that can quickly and easily generate tags and their subtags. Emmet is a great example of this in VSCode, however, sometimes, you just want something simple and straightforward. For example, auto-update tags automatically generate end tags when you enter a start tag. The closing tag automatically changes when you change the same tag, which these two extensions do.

It also works with JSX and many other languages ​​such as XML, PHP, Vue, JavaScript, TypeScript, TSX.

Get these two extensions here – Auto Close Tag and Auto Rename Tag.

Advanced VSCode extension that improves JavaScript development efficiency!

Advanced VSCode extension that improves JavaScript development efficiency!

Similar extensions –

##GitLens

As its According to the author, GitLens enhances the Git functionality built into Visual Studio Code, which includes many powerful features such as code author display through tracking code, commit search, history, and GitLens Explorer. You can read a full description of these features here.

Similar extensions –

Git Project Manager (Git Project Manager, GPM)

Git Project Manager (Git Project Manager, GPM) allows you to directly The VSCode window opens a new window targeting the Git repository. Basically, you can open another repository without leaving VSCode.

After installing this extension, you must set gitProjectManager.baseProjectsFolders to a list of URLs containing repos. For example:

{
    "gitProjectManager.baseProjectsFolders": [
        "/home/user/nodeProjects",
        "/home/user/personal/pocs"
    ]
}

Advanced VSCode extension that improves JavaScript development efficiency!

Similar extension –

Project Manager – I haven’t used it personally, but it has millions of installations. So I suggest you take a look.

Indenticator

It visually highlights the current indentation number, so you can easily distinguish it Various code blocks indented at different levels.

Advanced VSCode extension that improves JavaScript development efficiency!

VSCode Icons

Icons that make your editing more attractive!

Similar extensions –

  • VSCode Great Icons

  • Studio Icons

Dracula (Theme)

##Dracula

is my favorite theme.

Advanced VSCode extension that improves JavaScript development efficiency!We can use shortcut keys to quickly select and change themes;

First: press Ctrl k

and then press: Ctrl t

Other recommendations

  • Fira Code

    — A monospaced font with programming ligatures. Fool's Wharf Note: After cloning the project, find the ttf folder, and then install the font files in the folder. Restart VSCode, select TOOLS -> Options -> Fonts and Colors, and select Fira Code.

  • Live Server - A local development server with live reloading of static and dynamic pages.

  • EditorConfig for VS Code
  • – This plugin attempts to override user/workspace settings using settings in the .editorconfig file, no additional or vscode-specific files are required. As with any EditorConfig plugin, if root=true is not specified, EditorConfig will continue to look for .editorconfig files outside the project.

  • Prettier for VSCode
  • — A code formatting tool.

  • Bookmarks – It helps you navigate in your code, moving between important locations easily and quickly. No more searching for code, it also supports a set of selection commands that allow you to select bookmark lines and areas between bookmark lines, which is very useful for log file analysis.

  • Path Intellisense — Visual Studio Code plug-in that can automatically fill in file names.

  • Version Lens — Display package version information for npm, jspm, bower, dub, and dotnet core in the Visual Studio Code editor.

Recommended tutorial: vscode tutorial

The above is the detailed content of Advanced VSCode extension that improves JavaScript development efficiency!. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:codeburst.io. If there is any infringement, please contact admin@php.cn delete