VS code shows print output in TERMINAL instead of OUTPUT

前端 未结 1 1499
别那么骄傲
别那么骄傲 2020-12-22 02:10

I\'m trying to set up VS code for java programming, and I\'m kind of done. However one thing in particular bothers me. When I for example run the code below I get the output

相关标签:
1条回答
  • 2020-12-22 02:49
    {
        // Use IntelliSense to learn about possible attributes.
        // Hover to view descriptions of existing attributes.
        // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
        "version": "0.2.0",
        "configurations": [
            {
                "type": "java",
                "name": "Debug (Launch) - Current File",
                "request": "launch",
                "args": "",
                "console": "internalConsole",
                "mainClass": "${file}"
            },
        ]
    }
    

    Add this to your launch.json file. The important option for you here is "console": "internalConsole", This will output everything to the Debug Console tab and not terminal. And it will look clean like this.

    0 讨论(0)
提交回复
热议问题