简体   繁体   English

如何在Windows的Linux子系统中打开VS Code IDE?

[英]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.

相关问题 如何从 Windows Linux 子系统打开 VSCode? - How to open VSCode from a Windows Linux Subsystem? 在 windows linux 子系统的 VS Code 中打开时,如何防止 windows 无效文件名被重命名? - How do I prevent a windows invalid file name from getting renamed when opening in VS Code in the windows linux subsystem? 无法在Windows子系统Linux上使用gdb在VS代码上调试C - Unable to debug C on VS Code using gdb on Windows Subsystem for Linux 如何在 Windows Linux 子系统中运行 rpc? - How to run rpc in Windows Linux Subsystem? Windows上的Ubuntu上的Bash中的BrowserSync(Linux子系统) - 无法打开浏览器 - BrowserSync in Bash on Ubuntu on Windows (Linux Subsystem) - couldn't open browser 从 WSL(Linux 的 Windows 子系统)写入 Windows 磁盘 - Write to windows disk from WSL (Windows subsystem for Linux) 使用Code :: Blocks IDE工具从Linux-> Windows移植 - Porting from Linux-> Windows using Code::Blocks IDE tool Windows 10 Linux子系统上的Xming Visual Studio代码 - Xming Visual Studio Code on Windows 10 Linux Subsystem 如何在 Windows 10 上使用 VSCodium 设置 Windows 子系统 Linux (WSL 2) - How to setup Windows Subsystem Linux (WSL 2) with VSCodium on Windows 10 从 Sublime Text 使用 Windows Subsystem for Linux (WSL) - Using Windows Subsystem for Linux (WSL) from Sublime Text
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM