我无法在 Win Subsystem for Linux 的 Visual Studio Code 中创建文件或目录 [英] I am unable make file or directory in Visual Studio Code in Win Subsystem for Linux
本文介绍了我无法在 Win Subsystem for Linux 的 Visual Studio Code 中创建文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用这个指南.当我执行添加源代码文件"步骤时,我会看到此报告:
I use this guide. When I take the step "Add a source code file", I am shown this report:
Unable to write file 'vscode-remote://wsl+ubuntu-20.04/home/alex/TEST/helloworld/helloworld' (NoPermissions (FileSystemError): Error: EACCES: permission denied, open '/home/alex/TEST/helloworld/helloworld')
我不知道该怎么办,有人可以帮我吗?
I don't know what to do, can some one help me?
推荐答案
VScode 因此需要权限
The VScode needs permissions thus
在你的 WSL 终端上试试这个命令
Try this command on your WSL terminal
sudo chown -R username /path/to/working/directory
替换:
'username' 包含您的用户名和目录路径
'username' with your username and the path of your directory
这篇关于我无法在 Win Subsystem for Linux 的 Visual Studio Code 中创建文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文