安裝完vscode后 想使用:在終端使用命令 code .打開vscode,提示-bash: code: command not found
解決辦法:
需要先安裝code
安裝code:打開VSCode –> command+shift+p –> 輸入shell command –> 點擊提示Shell Command: Install ‘code’ command in PATH運行
再次打開終端,cd到要用VSCode打開的文件夾,然后輸入命令code .即可打開
安裝完vscode后 想使用:在終端使用命令 code .打開vscode,提示-bash: code: command not found
解決辦法:
需要先安裝code
安裝code:打開VSCode –> command+shift+p –> 輸入shell command –> 點擊提示Shell Command: Install ‘code’ command in PATH運行
再次打開終端,cd到要用VSCode打開的文件夾,然后輸入命令code .即可打開