DEV Community

AKINRO OLAWALE
AKINRO OLAWALE

Posted on

12

How to Add VSCode path to Mac path permanently

Image description

1. Open ~/.zshrc using the below command

vi ~/.zshrc

2. Add the following path

export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"

3. Source it using below command

source ~/.zshrc

Top comments (1)

Collapse
 
_ndeyefatoudiop profile image
Ndeye Fatou Diop

Nice! I generally use the command palette and Install « code » command in PATH

👋 Kindness is contagious

Engage with a wealth of insights in this thoughtful article, valued within the supportive DEV Community. Coders of every background are welcome to join in and add to our collective wisdom.

A sincere "thank you" often brightens someone’s day. Share your gratitude in the comments below!

On DEV, the act of sharing knowledge eases our journey and fortifies our community ties. Found value in this? A quick thank you to the author can make a significant impact.

Okay