DEV Community

Almatin Siswanto
Almatin Siswanto

Posted on

1

Add Visual Studio Code to your OSX zsh PATH

After installing Visual Studio Code, it will not automatically be added to your terminal path, so you will need to add it manually. here is how.

Open your terminal and run this command in your terminal

cat << EOF >> ~/.zprofile
# Add Visual Studio Code (code)
export PATH="\$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
EOF
Enter fullscreen mode Exit fullscreen mode

Restart your terminal, and you should now be able to open Visual Studio Code directly from your terminal using this command

% code .
This will open the current folder in your Visual Studio Code. That’s it!

Resources:

Visual Studio Code for Mac

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay