I’ve been using Jetbrains products for a long time. I decided to check why VS Code has so many followers. Initially, I assumed that it’s because it’s free of charge, but after some time of using it I found out that is not the case.
We can easily adjust most things to our preference, which I encourage you to do. Consider my article as an inspiration, not the revealed truth.
My main problem with VS Code was chaos in it’s interface. A lot of unnecessary features that distracted and irritated me. So let’s remove them.
In the beginning, we will modify a little bit the settings.json file (search for ‘settings’ in Command Pallete)
The activity bar visible on the right is unnecessary for me, I use shortcuts
I’ll also remove the minimap. It seems to be useful, yet in reality it only distracts attention from the code
Go to hell Peek Previews - I want to go straight to the file, I’m not interested in previewing
I don’t need information about currently open files in explorer
Here comes the controversial decision, I’m turning off the tabs. It may seem absurd, but after it enforces good habits and in the long-term significantly increases productivity, about it later
Additionally, I use my favorite JetbrainsMono font with ligatures and smooth caret animations
Such a small number of changes have made the view so clear
VS Code has a great file search navigation mechanism. As you saw before, I disabled the bookmarks. All you need is…
It works great. If you want to open the previous file, just press this shortcut twice. Want to go deeper? Use the shortcut more times. You save a lot of time on not taking your hands off the keyboard. You also don’t waste time looking for a file in the 20 open tabs or the file explorer.
This change speeds up the display of suggestions, additionally snippets are displayed at the top.
Webstorm has accustomed me to the fact that the function selected from the hints has already open brackets. Let’s add it
Especially useful when working with hot reloading
We can prevent it from being overwritten by an empty value. We can also format its contents while pasting.
For this feature we need an extension that can handle the macro. Add macros extension to your VS Code. Then add the following code to settings.json
and map your favorite key combo in keybindings.json for this action
Global search placed in a sidebar and displayed vertically is not very convenient. Let’s find a better place for that
Let’s limit its scope
In combination with the extensions listed below, working with HTML and JSX is quick and fun
Add a keyboard shortcut known from most browsers to switch tabs
it is also useful to add a shortcut to restore focus on the editor
I recommend you to check this article to pimp your terminal
TabNine - AI code completion, you’ll be surprised most of the time by the quality of the hints, sometimes you’ll make facepalm. Still worth it
Macros - powerful custom macros support
Setting Sync - synchronize all your IDE settings, you never know when you’ll need it
Auto Close Tag - makes working with HTML and JSX agile
Auto Rename Tag - improving work with HTML and JSX
Bracket Pair Colorizer - significant improvement in code readability
Colorize - variables containing a colour are highlighted in that colour
Create Files & Folders: On The Go - create files and folders quickly by entering a path
Image preview - preview of the images on the import hover
InteliSense for CSS class names in HTML - make work with HTML and JSX easier
Path Intelisense - enter paths more efficiently
...but the end of the article. As you can see, VS Code is very flexible to modify, everyone will find the possibility to adjust it to their needs. I just touched upon the topic, there are still plenty of useful shortcuts, extensions that can be downloaded from the market, but also easily created by yourself. An article about how to create an extension is on it’s way.