How do I make a script in VScode so that when I press a key it will run and compile a Java program in an external terminal?

huangapple go评论74阅读模式
英文:

How do I make a script in VScode so that when I press a key it will run and compile a Java program in an external terminal?

问题

在VScode中如何创建一个脚本,以便在我按下某个键时,在外部终端中运行和编译Java程序?我在C#的教程中看到过类似的内容,但是在Java方面我没有看到过相应的教程。该教程使用了launch.json文件。

英文:

How do I make a script in VScode so that when I press a key it will run and compile a Java program in an external terminal? I saw a tutorial of it in C# but I haven't seen a tutorial of it in Java. The tutorial used the launch.json file in it.

答案1

得分: 0

launch.json 中添加以下设置:

"console": "externalTerminal"

How do I make a script in VScode so that when I press a key it will run and compile a Java program in an external terminal?

英文:

Add the following setting in launch.json:

"console": "externalTerminal"

How do I make a script in VScode so that when I press a key it will run and compile a Java program in an external terminal?

huangapple
  • 本文由 发表于 2020年10月22日 23:40:47
  • 转载请务必保留本文链接:https://go.coder-hub.com/64485765.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定