简体   繁体   中英

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. Obviously the colon in the file name is invalid in 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.

But the colon in those file names is still getting automatically removed by git when the repo gets opened by doing 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?

I upgraded to WSL 2, cloned the repo again and didn't have any issues.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM