简体   繁体   English

如何在 vscode 中克隆终端?

[英]How to clone a terminal in vscode?

I am using the java debugger and the java projects extension on vscode and I need to compile my project two times using the java process console which pops out when I choose the 'play' icon from the gui next to my project name (in java projects extension tab in the integrated explorer). I am using the java debugger and the java projects extension on vscode and I need to compile my project two times using the java process console which pops out when I choose the 'play' icon from the gui next to my project name (in java projects集成资源管理器中的扩展选项卡)。 The problem is that when the server of my application is running and I choose to compile and run the Client side from that same icon, nothing really happens because the java process console is already busy running the Server.问题是,当我的应用程序的服务器正在运行并且我选择从同一个图标编译和运行客户端时,什么都没有发生,因为 java 进程控制台已经忙于运行服务器。 So my question is:所以我的问题是:

How to open an additional java process console?如何打开额外的 java 过程控制台? Is there any special command that I can run to launch another java process console after I split the first one?拆分第一个后,我可以运行任何特殊命令来启动另一个 java 进程控制台吗?

NOTE My question is very similar to this one but since there was no activity there, I opened a new one.注意我的问题与这个问题非常相似,但由于那里没有活动,我打开了一个新问题。 Any help is much appreciated.任何帮助深表感谢。

@MollyWang Thank you for your interest, but I am satisfied with a workaround I was told to try out.The command that is going to run a certain executable while taking into consideration all the classes of the java project is produced by the vscode gui and printed in the terminal (Java Proccess console).Then I copy it, open another cmd and change the file I want to be run. @MollyWang 感谢您的关注,但我对被告知尝试的解决方法感到满意。在考虑 java 项目的所有类的同时运行某个可执行文件的命令由 vscode gui 生成,并且打印在终端(Java Proccess 控制台)中。然后我复制它,打开另一个 cmd 并更改我要运行的文件。 All of that because, vscode cannot have to Java consoles opened at the same time.所有这一切都是因为,vscode 不能同时打开 Java 控制台。 Once you try to run your Client program at a new console, you will be prompted to the first one you created and you will miss the execution of your Server.class.一旦您尝试在新控制台上运行您的客户端程序,系统将提示您进入您创建的第一个程序,您将错过 Server.class 的执行。

So if you are using the VsCode Java Projects extension and reading this, don't waste any time trying to clone the terminal the extension creates for you.因此,如果您正在使用 VsCode Java 项目扩展并阅读此内容,请不要浪费任何时间尝试克隆该扩展为您创建的终端。
It simply cannot be done.Hope that helped.它根本无法完成。希望有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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