[英]How to open a VS Code IDE from Linux subsystem on Windows?
I'm running a Linux subsystem with an Ubuntu terminal inside Windows 10 - I wanted to make use of the functionalities of both operating systems without partitions or virtual machines. 我正在Windows 10内运行带有Ubuntu终端的Linux子系统-我想利用两个操作系统的功能,而不需要分区或虚拟机。
In an Ubuntu terminal on Linux, I use the command 'code .' 在Linux的Ubuntu终端中,我使用命令“ code”。 to open up the VS Code IDE but it doesn't seem to work when the terminal is part of a subsystem on Windows. 打开VS Code IDE,但当终端是Windows子系统的一部分时,它似乎不起作用。
I can open up the IDE from Windows 10 and set my path into the Linux system but I remember reading some guidance that it's okay to save files from the Linux onto the Windows side but not vice versa. 我可以从Windows 10打开IDE并设置进入Linux系统的路径,但我记得阅读过一些指导,可以将Linux中的文件保存到Windows端,但是反之则不行。
Any solutions are much appreciated, thanks in advance! 非常感谢任何解决方案,在此先感谢!
If you wish to invoke windows binaries from WSL (Windows Subsystem for Linux) like for the example you want to run visual-studio-code, you can do so by setting your visual-code's installation directory into your %PATH% system variable and invoking it using this way 如果您希望从WSL (Linux的Windows子系统)中调用Windows二进制文件(例如要运行visual-studio-code的示例) ,则可以通过将视觉代码的安装目录设置到%PATH%系统变量中并调用来实现用这种方式
$ [application-name].exe notice the .exe is important. $ [application-name] .exe注意.exe很重要。
And this interoperability is added in the Fall Creator Update of windows. 并在Windows的Fall Creator Update中添加了这种互操作性。
You can follow this documentation from Microsoft for more help. 您可以按照Microsoft的说明文件获取更多帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.