mac-setup icon indicating copy to clipboard operation
mac-setup copied to clipboard

Visual Studio Code brew Install Now Adds code to Path By Default

Open machale opened this issue 4 years ago • 3 comments

I'm Submitting a ...

[x] Bug report
[ ] Tool/language/etc documentation request

Bug Location

https://sourabhbajaj.com/mac-setup/VisualStudioCode/

Tool/Language/etc

NA

Other Information

Minor issue. It appears the current brew installation of Visual Studio Code (as of this writing, v 1.61.1) already puts the code command in the path by default. It puts it at /usr/local/bin/code.

% ls -l /usr/local/bin/code
lrwxr-xr-x  1 xxxxx  xxxxx  68 Oct 15 00:48 /usr/local/bin/code -> /Applications/Visual Studio Code.app/Contents/Resources/app/bin/code

So you can remove the macOS integration section on the Visual Studio Code page. Or at least remove the first two lines and just retain the two bullets.

Thanks.

machale avatar Oct 15 '21 05:10 machale

Minor issue. It appears the current brew installation of Visual Studio Code (as of this writing, v 1.61.1) already puts the code command in the path by default. It puts it at /usr/local/bin/code.

Doesn't appear to be part of the install or zap stanza currently.

otkd avatar Dec 29 '21 00:12 otkd

same for sublimetext as well

xmlking avatar Mar 12 '22 18:03 xmlking

Hey @machale, @otkd, @xmlking, I addressed this kind of issue in a similar project: Mac-Setup guide. Check it out, maybe it will be useful too 😉

MonsieurBorges avatar Feb 13 '23 22:02 MonsieurBorges