简体   繁体   English

终端输出 Vscode

[英]Terminal Output Vscode

I'm learning how to write a simple "Hello World" program in Java.我正在学习如何用 Java 编写一个简单的“Hello World”程序。 I want to change the terminal output so that only the output is shown.我想更改终端输出,以便只显示输出。 I don't want to see the extra text.. Here's a picture我不想看到多余的文字..这是一张图片

you could try to add "console": "internalConsole" in your launch.json like :您可以尝试在launch.json 中添加"console": "internalConsole" ,例如:

"configurations": [
           {
             "type": "java",
             "name": "CodeLens (Launch) - App",
             "request": "launch",
             "mainClass": "com.test.maven.App",
             "console": "internalConsole",
             "projectName": "my.app"
           }
         ]

then it will show in Debug Console然后它将显示在Debug Console

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

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