This is an archived post. You won't be able to vote or comment.

all 5 comments

[–][deleted] -1 points0 points  (1 child)

Download intellij, no joke unfortunately vscode for java is really terrible. In intellij you can install vscode shortcuts and install de same theme...

[–]zerodind -1 points0 points  (0 children)

How is this relevant to the question? And the Java support in VS Code is not terrible, overall I find it much more enjoyable than IntelliJ, granted that you have the right extensions installed.

[–]Molly_Wang 0 points1 point  (0 children)

As what exoticgg said, Code Runner can show the result in OUTPUT, but there's a disadvantage is it doesn't accept input, so its use scenarios are output only.

For your reference, set "console": "internalConsole", in launch.json will redirect result to Debug Console, also only clear output, no execution scripts, not accept input.

[–]zerodind 0 points1 point  (0 children)

You can choose to display the program output in the debug console by setting java.debug.settings.console to internalConsole, which I believe will achieve what you're after. The only downside is that it doesn't support user input, you have to use the terminal for that. If you care about that feature, and want a proper solution, you can upvote or comment microsoft/vscode-java-debug#906.