[英]How do I prevent a windows invalid file name from getting renamed when opening in VS Code in the windows linux subsystem?
I'm trying to work on a repo that has a bunch of file with names like xxx:abc.js.我正在尝试处理一个包含一堆名称如 xxx:abc.js 的文件的存储库。 Obviously the colon in the file name is invalid in windows.
显然文件名中的冒号在windows中无效。
So I thought if the files were on the Linux subsystem in Windows and if I was using VS Code's Remote extension, then it would be like I was developing in a Linux environment.所以我想如果这些文件位于 Windows 的 Linux 子系统上,并且如果我使用的是 VS Code 的远程扩展,那么就像我在 ZEDC9F0A5A5D57797BF68E3736474383Z 环境中开发一样。
But the colon in those file names is still getting automatically removed by git when the repo gets opened by doing code.
但是,当通过执行
code.
Do I need to actually install the linux version of VS Code on ubuntu or is there some other way to make this work?我是否需要在 ubuntu 上实际安装 linux 版本的 VS 代码,还是有其他方法可以使这项工作?
I upgraded to WSL 2, cloned the repo again and didn't have any issues.我升级到 WSL 2,再次克隆了 repo,没有任何问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.