简体   繁体   中英

Wsl2 why develop in this environment

I understand the principal of having Linux on your windows box over using a VM.

I have seen articles on using vscode in wsl with the vscode wsl extension.

My question is why would I do this over just using vscode on Windows.

Might sound like a silly question and I hear people saying I can now develop on Linux where my company is is windows, I just don't understand what the benefits are

It all depends on what you are developing, if its C# with the target operating system being windows or azure there is little benefit.

Personally I work in nodejs, our target deployment OS is centos running in AWS-EC2, so it makes total sense. There is a lot of tooling that runs better in a linux environment than in a dos/powershell environment. Also when testing we are running the code in an environment that is close to our target env which reduces the chances of unforeseen issues further.

Does this make sense? what are you developing day to day and what is your target environment?

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