wsl 系统中编辑文件,用 vscode 则提示一下内容:

To use VS Code with the Windows Subsystem for Linux, please install VS Code in Windows and uninstall the Linux version in WSL. You can then use the 'Visual Studio Code' command in a WSL terminal just as you would in a normal command prompt.
Do you want to continue anyways ? [y/N]

解决方法:

这个是 windows 的 vscodewslvscode 冲突了,需要卸载 Liux 系统的 vscode ,则执行以下命令

Python
sudo apt purge code -y sudo apt autoremove -y
1
2
3
sudo apt purge code - y
sudo apt autoremove - y
 

让后运行 code 要编辑的文件 则可以正常执行




  • zeropython 微信公众号 5868037 QQ号 5868037@qq.com QQ邮箱
Logo

更多推荐