code-server Command ' ' not found

由于通过一些特殊的方式登录linux用户后,全局变量不会自动加载,需要在 vscode 的 bash terminal手动读取

 

 

 

 输入 source /etc/profile

或者vim ~/.bashrc

在文件里添加 source /etc/profile

原文地址:https://www.cnblogs.com/MiraculousB/p/14268080.html