My VS Code

My VS Code

For those working with JavaScript, React, Node, or React Native, it's no surprise that the most popular editor is Visual Studio Code, or simply - VS Code. Today, I want to share three configurations that are indispensable in my VS Code and that you might also find useful.

Clean Layout

Default VS Code

In the screenshot above, we see the default appearance of VS Code. Just below, there's a screenshot showing some customizations. If you look closely, you'll notice that I don't use the default left sidebar of the editor. Instead, I use an extension called Activity Bar, which places shortcuts like Search, Explorer, or Debugger in the bottom left bar.

Terminal

To further enhance a clean layout, the terminal fills the entire bottom area, providing more useful space in the editor. To activate this feature, click on the terminal bar, go to the Align Panel option, and select Justify.

Parameters Hints

One of the most useful settings in VS Code, which few people use, is parameter hints.

Basically, labels are added around the function or component that inform input parameters, as well as returns. Observe the gray text in the screenshot below. This feature is common in paid IDEs like WebStorm and extremely useful in daily work. Oh, and it works with both TypeScript and JavaScript.


To enable this feature in VS Code, simply add the following snippet to your configuration file:

 "editor.inlayHints.fontSize": 14,
 "editor.inlayHints.padding": true,
 "editor.inlayHints.enabled": "on",
 "javascript.inlayHints.parameterNames.enabled": "all",
 "javascript.inlayHints.functionLikeReturnTypes.enabled": true,
 "typescript.inlayHints.parameterNames.enabled": "all",
 "typescript.inlayHints.parameterTypes.enabled": true,
 "typescript.inlayHints.variableTypes.enabled": true,        

These are the main configurations I make in VS Code. Feel free to try them out, and don't forget to leave your feedback! ??

Until next time! ??


Raidan Dias

Senior Software Engineer Full Stack | React.js | Typescript | Java Spring | GO | Python

1 年

Extremamente útil! \o/

要查看或添加评论,请登录

Davi Silva的更多文章

  • React Hooks? Ok, mas por que?

    React Hooks? Ok, mas por que?

    No dia 6 de fevereiro de 2019, foi lan?ada a vers?o 16.8 do React, introduzindo os hooks.

  • JavaScript: var, let, and const

    JavaScript: var, let, and const

    If you're a JavaScript developer, you probably use , , or in your code. But do you really know what's happening under…

  • JavaScript, React ? Olha lá hein!

    JavaScript, React ? Olha lá hein!

    Nos últimos anos (quase quatro anos), venho trabalhando exclusivamente com desenvolvimento front-end, escrevendo código…

    4 条评论
  • Entendendo atributos privados no JavaScript/TypeScript

    Entendendo atributos privados no JavaScript/TypeScript

    O JavaScript, sendo uma linguagem de tipagem dinamica, realiza uma inferência automática de tipos. Isso significa que…

  • Understanding mutability and infer in TS

    Understanding mutability and infer in TS

    In this article, we will explain how Typescript works with mutability and inferring typings when you declare variables.…

  • Seven ways to remove elements from Arrays in JS

    Seven ways to remove elements from Arrays in JS

    It's most common when we develop code, in front or in the backend, to need to manipulate data from arrays removing…

  • 5 Javascript concepts every developer should know

    5 Javascript concepts every developer should know

    Every JavaScript developer should be familiar with these features that I am going to show in this article - modern…

  • "b" + "a" + +"a" + "a" ? Banana? What ?

    "b" + "a" + +"a" + "a" ? Banana? What ?

    JavaScript is one of the most important programming languages in the world. Whether you're a front-end or back-end…

    1 条评论
  • Capital letters? Why ?

    Capital letters? Why ?

    Do you work with React? Do you know why React components need to start with capital letters? In JSX, React components…

  • TTFB, TTI, and FCP: Do You Know What These Acronyms Mean?

    TTFB, TTI, and FCP: Do You Know What These Acronyms Mean?

    When discussing front-end applications built with React, we often encounter two primary types: SPAs (Single Page…

社区洞察

其他会员也浏览了