Original: MacOS command code used to open vscode
Before looking at some online teacher courses, they directly enter cmd or terminal code .
with vscode opened the current directory, feeling very convenient, although aware that under configuration environment variable, but not how familiar environment variables. Only knew configuration environment variable can ...... was learning Java is the shining operation, do not understand what it means for each step.
Baidu has na, today carefully read several times linux.cn article on their predecessors, I understand some of it. Try to do something.
Thank linux.cn Gangster Gangster Gangster articles and translations on, I have added to the translation bacteria. ?
Ah, let's go.
-
Where the Show Package Contents vscode look for executable files in his
Oh roar and see the electron, understand, should be under the Resource. Double-click to see, oh roar open liao, it is him.
-
This thing copied onto the terminal in the next path.
-
User opens at
.bash_profile
the back plus aexport PATH=/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin:$PATH
-
Refresh, so that the newly modified configuration file to take effect
source .bash_profile
-
enjoy~
Related information:
https://linux.cn/article-10374-1.html