在我的 Ubuntu 系统中:Linux aldebaran 5.8.0-50-generic#56~20.04.1-Ubuntu SMP Mon Apr 12 21:46:35 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
通常我会转到 C++ 源代码所在的目录并启动 VS Code
user-prompt> code .
在本地存储的项目上,这工作正常。但不在我的 NAS 安装的 cifs 卷中。我立即得到:
cannot stat path of the current working directory: Permission denied
该目录对于所有其他命令和 bash 脚本都是完全可读或可写的,但只有 VS Code 有问题。以“sudo”开头没有区别。同样的错误。
任何想法 ?
最佳答案
code \\YOUR_SERVER_IP\Folder_Name
或者打开 vscode -> 文件 -> 打开文件夹 ->\\YOUR_SERVER_IP\Folder_Name
请参阅图像引用。
enter image description here
enter image description here
关于ubuntu - 无法在 Samba Share 中打开 VScode,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67325336/