MacOS command code is used to open vscode


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.

  1. 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.

  2. This thing copied onto the terminal in the next path.

  3. User opens at .bash_profilethe back plus a

    export PATH=/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin:$PATH
    
  4. Refresh, so that the newly modified configuration file to take effect

    source .bash_profile
    
  5. enjoy~


Related information:
https://linux.cn/article-10374-1.html

Published 73 original articles · won praise 90 · views 40000 +

Guess you like

Origin blog.csdn.net/Hanoi_ahoj/article/details/90740458