Customize & Improve VS Code
Tags: beginners, webdev, react, productivity
Published: 2019-04-09 17:56:06

---
title: Customize & Improve VS Code
published: true
description: A brief overview of extensions and other customizations I can't go without in VS Code.
tags: beginners, webdev, react, productivity
cover_image: https://thepracticaldev.s3.amazonaws.com/i/4z4xwm013c2o9qompkdz.jpg
---
As web developers we spend a great amount of time staring at our IDE (Integrated Development Environment.  It only makes sense that we should try to make that experience as pleasant and painless as possible. My personal choice of IDE is Microsoft Visual Studio Code.  While it is pretty bare-bones out of the box, there is a practically endless amount of customizations and extensions that can be added to create quite the perfect well-polished tool to suit whatever your needs may be along your development Journey.  Following are some of my favorite extensions and customizations that help me push through the code.  

<h2>Extensions</h2>![](https://media.giphy.com/media/z0Qiq5g5Mt3ZS/giphy.gif)
VS Code comes along with a robust, active developer community that lives to make developers lives easier through the creation and maintenance of some amazing extensions.  In fact, there are so many available to do just about anything you can think of, that it can be quite overwhelming trying to choose which ones you want to implement into your development environment. My personal advice would be that when you think of something you want to improve, start by installing one extension and seeing if that serves your needs before installing another one with a similar name/function. 

<h3>Quality of Life Extensions</h3>
<h4>Simple React Snippets</h4>
One of my favorite types of extensions.  Whichever language you happen to be using, there are robust code snippet extensions that exist to save you numerous repetitive key strokes. Currently, I am doing a majority of my work in React and below you will find my current favorite snippet package. <b>Note, if you are still in school or are in a bootcamp you may want to hold off on using too many code snippet extensions.  While they are extremely helpful, it may be best to solidify understanding of syntax and commit it to memory before utilizing a snippet to do the heavy lifting for you.</b>
![](https://thepracticaldev.s3.amazonaws.com/i/4pjhfh73rqvpf333q8vv.png)
Contains a short list of keystroke commands that save you from repetitive work like creating scaffolding for classes or importing components. 
![](https://media.giphy.com/media/l378pxefkBefLrjXO/giphy.gif)<pre>
Typing "imrc" produces:
import React, { Component } from 'react';

Typing "ccc" produces:
class  extends Component {
  constructor(props) {
    super(props);
    this.state = {  }
  }
  render() { 
    return (  );
  }
}
 
export default ;
</pre>There are tons of snippet extensions for just about every language out there.
<h4>Code Spell Checker</h4>![](https://thepracticaldev.s3.amazonaws.com/i/cizzkl6j8n4aazm3ra4f.png)Does exactly what it sounds like.  A simple spellchecker that responds well to camelCase code.
<h4>Babel Javascript</h4> ![](https://thepracticaldev.s3.amazonaws.com/i/yi3cj940nsumkgje7kjy.png)An excellent syntax highlighter for Javascript.  It will highlight a portion of code when the syntax is not going to make it past the compiler.  Syntax highlighters also exist for most languages out there.
<h4>Open HTML in Default Browser</h4>![](https://thepracticaldev.s3.amazonaws.com/i/32eogkut8p89hmglsu6d.png)Another extremely accurate named extension.  It adds an option that appears when right-clicking on a file in the file-browser pane to simply open that given file in whatever is set as your default browser.
<h4>Path Intellisense</h4>![](https://thepracticaldev.s3.amazonaws.com/i/z0qs90gzh8puy7d90jf3.png)Adds intellisense auto-complete to file paths.  For instance if you are importing a component from another file in your file tree, it will make suggestions for pathing: ![](https://thepracticaldev.s3.amazonaws.com/i/6vakd7y4s7k6x53owu4l.png)
<h4>Sensitive Replace</h4>![](https://thepracticaldev.s3.amazonaws.com/i/245t5q9gl04v5ft54zhm.png)When replacing multiple selections, it will preserve the casing on each item even if they are all differently cased.
<h4>Prettier Code Formatter</h4>![](https://thepracticaldev.s3.amazonaws.com/i/opc89qwe0k4o9d6xk9t3.png)One of my favorite extensions at the moment.  It formats Javascript/TypeScript/CSS on save. It will format your code based on the length of lines, and other attributes to make your code more readable and a lot "Prettier" It will also automatically delete trailing commas, and unnecessary parenthesis and semicolons.  It it completely customizable in the event you want it to ignore its formatting rules.<h5>Before Prettier:</h5>![](https://thepracticaldev.s3.amazonaws.com/i/bfjzxkdtdmjc1g3kqm8o.png)<h5>After Prettier:</h5>![](https://thepracticaldev.s3.amazonaws.com/i/qxpcfdwf6wxxhfx87daw.png)<br>![](https://media.giphy.com/media/l76MPxFSGu4PvZXfBp/giphy.gif)
<h3>Aesthetic Extensions</h3>
If we are going to stare at something the majority of the time we are awake, we might as well make it as pleasant to our eyes as possible.  VS Code has thousands of themes (most free, some that require purchase) to make our coding experience just the way we want it.  Certain color themes are also much easier on the eyes than the default code or provide specific color scheming that makes it much easier to identify specific components and/or attributes of an App.  
<h4>Dracula Official & Night Owl </h4>![](https://thepracticaldev.s3.amazonaws.com/i/3xmyt3gs9od3jru8mc0m.png) My favorite theme at the moment.  I think the colors are fun and it makes it extremely easy to identify different aspects of the code I am working on: ![](https://thepracticaldev.s3.amazonaws.com/i/yr73e2xezaonkrg5lewx.png)<br>![](https://thepracticaldev.s3.amazonaws.com/i/dshi5mu0i9cxhy21mmn1.png)Another one of my favorite themes.  Similar colors, really easy on the eyes at night: ![](https://thepracticaldev.s3.amazonaws.com/i/bp9rw0u31gyiarm5qrwn.png)
<h4>Material Icon Theme</h4>![](https://thepracticaldev.s3.amazonaws.com/i/ot4lppip5zgykxc63ers.png)Add some flair to your icons:![](https://thepracticaldev.s3.amazonaws.com/i/neky2snke2uoj3ul896e.png)<br>![](https://media.giphy.com/media/SKGo6OYe24EBG/giphy.gif)
<h4>Finding a Font You Like.  My Choice is Fira Code</h4>![](https://thepracticaldev.s3.amazonaws.com/i/38hz78bg4x921ol2q1rt.png)Fira Code has Ligatures enabled.  This just means that it supports symbols taking the place of common comparison operators: ![](https://thepracticaldev.s3.amazonaws.com/i/3vur2vpf84uslha0tzrm.png)

<h3>Final Thoughts and one more Customization</h3>
In summation, make VS Code your own.  Make it so you enjoy using it as much as possible and make it so it is pleasing to your eye. If you find yourself struggling with syntax or repeating the same keystrokes over and over again, go see if there is an extension that can make your life easier.  
<h3>One last customization, get rid of the annoying "Parameter Hints" that blocks half of your screen as you type</h3>
![](https://thepracticaldev.s3.amazonaws.com/i/w9z32zyu0nlvtxnfek4z.png)
This Pop-up is enabled by default. Sometimes it will block half of your screen and you will no longer be able to see your code.  Navigate to your settings.json file and add the following line if you would like to disable this annoying suggestion box: 
![](https://thepracticaldev.s3.amazonaws.com/i/vj3lz14vgxjlkmbh3nks.png)

<h3>Happy Coding!</h3>