Open a file/folder in VSCode from the Terminal

Welcome to my blog ππ½
I'm a Front-End Developer with a passion for learning!
I write about Programming π©π½βπ» and Productivity Tips β
Search for a command to run...

Welcome to my blog ππ½
I'm a Front-End Developer with a passion for learning!
I write about Programming π©π½βπ» and Productivity Tips β
Amazing tip and quite handy. Previously I used to do open . and then right-click => Open in VSCode.
But this one is better and quicker.
Glad it was helpful!
In this series, you will find fast, short, and sweet tips/hacks that you may or may not be aware of. I will try to provide these (fairly) regularly on Fridays.
A Note on the Series: Fast Fridays π is a series where you will find fast, short and sweet tips/hacks that you may or may not be aware of. I will try to provide these (fairly) regularly on Fridays. Aliases An alias is simply a shortcut that can ref...
Although my experience is primarily with front-end development, my current job is affording me the opportunity to do more full-stack work. Naturally, this meant that I needed to explore the different database GUIs available on the market. Here is a l...

A Note on the Series: Fast Fridays π is a series where you will find fast, short, and sweet tips/hacks that you may or may not be aware of. I will try to provide these (fairly) regularly on Fridays. In this Fast Friday tip, I'll explain how to crea...

Over the past year, Iβve started incorporating a Git GUI into my workflow. I still reach for the terminal about 90% of the time, but Iβve found that a GUI can really shine when it comes to things like viewing diffs, checking stashes, or resolving mer...

Simplifying Branch Management with Git Worktree

With all the AI tools popping up these days, I figured I'd try out some speech-to-text software in an attempt to boost my productivity. I've been hearing a lot about βdeveloping at the speed of thoughtβ, so here's a list of the top speech-to-text sof...

A Note on the Series:
Fast Fridays π is a series where you will find fast, short and sweet tips/hacks that you may or may not be aware of. I will try to provide these (fairly) regularly on Fridays.
Have you ever been traversing through the terminal and want to open up a particular file or folder in VSCode? The long way to do this is to open up the editor, find the folder where the file is located, and then open the file. Well, there's actually a quicker way to do this with just a few configuration steps.

4 . Select "Install 'code' command in PATH"
5 . Restart your terminal
After these steps you should now be able to run the following commands in the terminal:
code <file_name> --> Opens VSCode with the specified file. code . --> Opens VSCode with the current directory you are in.