ubuntu - 无法在 Samba Share 中打开 VScode

标签 ubuntu visual-studio-code samba cifs

在我的 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/

相关文章:

php - 在 ubuntu AWS EC2 实例上发出 "apt-get update"命令将 PHP 版本从 7.1 升级到 7.2?

php - 套接字资源 ID 溢出

angular - TSLint 和 VSCode 未在 .ts 文件中显示红线

visual-studio-code - "Prettier - Code formatter"在 Visual Studio 代码中不起作用

windows - 与 GitHub 相比,Windows 文件共享上的 Git 速度慢

linux - 无法在 Raspbian 上挂载 Samba 共享,在 Debian 上运行完美

python-2.7 - Ubuntu 和 Ironpython : What paths to add to sys. 路径以及如何导入 fcntl 模块?

linux - 回滚单声道 4.0.1 到 3.12.0

templates - 使用VS Code创建新的Flutter Web项目时的Dart模板请求

c++ - 在 linux 中使用 opencv 从 windows 共享文件夹中读取图像