问题
When I run a java program in vscode's integrated terminal, the full java path displays as a large box of text. Is there any way to get ride of this?
/Library/Java/JavaVirtualMachines/jdk-13.0.1.jdk/Contents/Home/bin/java --enable-preview -Dfile.encoding=UTF-8 -cp "/Users/myusername/Library/Application Support/Code/User/workspaceStorage/alotofnumbers/redhat.java/jdt_ws/foldername/bin"
回答1:
you could let it output in debug console instead of terminal channel as a workaround,
add "console": "internalConsole"
in your launch.json
"configurations": [
{
"type": "java",
"name": "CodeLens (Launch) - App",
"request": "launch",
"mainClass": "com.test.maven.App",
"console": "internalConsole",
"projectName": "my.app"
}
]
来源:https://stackoverflow.com/questions/59696109/how-can-you-hide-java-compiler-path-vscode