How can you hide Java compiler path VSCode?

人盡茶涼 提交于 2021-02-11 08:50:01

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!