| updated to latest brew version (thanks: @eloisetaylor5693)
Already have brew, then go
$ brew install --cask visual-studio-code
If doesn't have brew before, run this first
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Success ? check version and run :D
$ code --version
$ code {your-project-folder}
Top comments (5)
Following the brew instructions noted in your post, I ran this
brew cask install visual-studio-code, but got an error:Error: Unknown command: caskAfter removing
caskit workedseems like newer version of homebrew uses
--caskinstead, so now looks like this:brew install --cask visual-studio-codeThanks mate, I'll update my post too!
Why I need --cask? I installed without the flag and it works.
Cask offers a way to manage the installation of graphical applications.
Brew without the
--caskwould install headless versions of those applications(like Docker for example) or would install the commandline version of it. It could also mean it install the application, but keeps it in the homebrew installation folder.Installing all your applications through
--caskallow you to better manage your system using homebrew only.Homebrew offers the
brew bundle dumpcommand, which dumps all the things you installed on your machine through homebrew. It would create a file in your home directory calledBrewfile, which you can use to easy recover your software usingbrew bundle install.