Vscode's environment variable code

Source: Internet
Author: User
Installation path for Vscode

Essence: Vscode installation path/applications/visual? Studio? Code.app/contents/resources/app/bin There is a code executable below it.
The benefits of code on the command line will be found in the path list, with the code executable in the path.

Method 1: Add path Path
vim ~/.bash_profile#vscode### 添加vscode的安装路径export PATH=/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin:$PATH:wqsource ~/.bash_profile
Mode 2 or add an alias code
vim ~/.bash_profilealias code="/Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code":wqsource ~/.bash_profile
Note Space
Visual\ Studio\ Code.app是一个文件夹名称\空格 在文件夹名字中是一个空格。Visual空格Studio空格Code.app

Vscode's environment variable code

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.