DEV Community

Teerasak Vichadee
Teerasak Vichadee

Posted on • Updated on

Install vscode on OSX via brew

| updated to latest brew version (thanks: @eloisetaylor5693 )

Already have brew, then go

$ brew install --cask visual-studio-code
Enter fullscreen mode Exit fullscreen mode

If doesn't have brew before, run this first

$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Enter fullscreen mode Exit fullscreen mode

Success ? check version and run :D

$ code --version 
$ code {your-project-folder}
Enter fullscreen mode Exit fullscreen mode

Discussion (3)

Collapse
eloisetaylor5693 profile image
eloisetaylor5693

Following the brew instructions noted in your post, I ran this brew cask install visual-studio-code, but got an error: Error: Unknown command: cask

After removing cask it worked

Collapse
eloisetaylor5693 profile image
eloisetaylor5693

seems like newer version of homebrew uses --cask instead, so now looks like this:

brew install --cask visual-studio-code

Collapse
ilumin profile image
Teerasak Vichadee Author

Thanks mate, I'll update my post too!