简体   繁体   English

我如何像在Eclipse中一样在vscode的控制台中键入

[英]How can i type in the console of vscode just like in eclipse

After installing java extension pack, I start my migration trip on writing java code in vscode. 安装Java扩展包后,我开始在vscode中编写Java代码的迁移之旅。 But i have problem when i want to type in console to convert some values into the program such as use Scanner to get the value typed from console. 但是当我想输入控制台以将某些值转换为程序时,例如使用扫描仪从控制台获取键入的值时,我遇到了问题。 What should I do, or are there any alternative method to achieve this? 我该怎么办,或者有其他替代方法可以做到这一点?

So what you're trying to accomplish is provide user input from the terminal. 因此,您要完成的工作就是从终端提供用户输入。 What you're seeing is the debug console which is only available if you debug your application. 您将看到调试控制台,该控制台仅在调试应用程序时可用。 Since your app is running. 由于您的应用正在运行。 It's in read-only mode. 它处于只读模式。

在此处输入图片说明

I hope this helps. 我希望这有帮助。 Cheers! 干杯!

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

相关问题 如何仅使用Eclipse控制台中的信息来解决异常? - how can I resolve the exceptions just by using the information in the eclipse console? 如何跳转到 Vscode 中的错误行,就像 Intellij 的想法一样 - How can I jump to the error line in Vscode Just like Intellij idea 如何像在控制台窗口中一样在Eclipse编辑器中查看日志文件? - How to view a log file in Eclipse editor just like it looks in console window? JSF:如何实现类似Eclipse的控制台? - JSF: How to implement an eclipse like console? 如何获得Eclipse控制台以从DLL打印消息? - How can I get the Eclipse console to print messages from a DLL? Eclipse:如何使光标显示在控制台的最新位置? - Eclipse: How can I get the cursor to appear at the latest point in the console? 关闭Eclipse后,如何检索打印到Eclipse控制台的消息? - How can I retrieve messages printed to Eclipse console after closing Eclipse? 我怎样才能将项目类型识别为eclipse插件? - How i can i identify the project type as an eclipse plug-in? 在Java中的调试模式下,是否有类似控制台的地方可以输入命令? - When in Debug mode in Java, is there anything like a Console where I can type commands? 如何在Eclipse中重构泛型的元素类型以及任何快捷方式? - How can I refactor the element type of Generics in eclipse, any shortcuts?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM