官术网_书友最值得收藏!

Launching VS Code from the Command Line

Let's take a look at the following steps:

  1. You can also run Visual Studio Code from the Terminal by typing code after adding it to the PATH environmental variable:
  2. Launch Visual Studio Code
  3. Open the Command palette by pressing ShiftcmdP 
  4. Type shell command to find the Shell Command: Install 'code' command in PATH command
  5. Press Enter and Visual Studio Code will be added to the PATH
  1. Restart the terminal for the new $PATH value to take effect
  2. You'll be able to type code in any folder to start editing files in that folder
If you had earlier versions of Visual Studio Code and have added Visual Studio Code as an alias in your .bash_profile or equivalent for other shells, then remove that reference from the file and replace that by following the above steps to run  Shell Command: Install code command in PATH   command.
主站蜘蛛池模板: 贡嘎县| 五家渠市| 云林县| 临城县| 伊吾县| 麻江县| 安溪县| 天镇县| 三门县| 新田县| 龙泉市| 台州市| 西藏| 台州市| 镇巴县| 增城市| 永春县| 兰州市| 晋州市| 新昌县| 平阳县| 伊金霍洛旗| 密山市| 安化县| 桐柏县| 万全县| 淅川县| 双城市| 苏州市| 桃江县| 海阳市| 岳西县| 定兴县| 林周县| 东至县| 广河县| 玛曲县| 临颍县| 屯门区| 绥宁县| 民勤县|