IntelliJ IDEA:将EOF符号发送到Java应用程序

问题描述:

从IntelliJ IDEA运行命令行Java应用程序时,是否可以将EOF符号发送到等待输入的程序?在控制台中,可以使用ctrl-d组合来完成此操作,但在IDEA中不起作用。

When running a command-line Java application from IntelliJ IDEA, is it possible to send EOF symbol to the program awaiting input? In console this can be done using ctrl-d combination but in IDEA it doesn't work.

已实现,请使用在Mac上为Ctrl + D /⌘+ D。 https://www.jetbrains.com/idea/help/debug-tool-window- console.html

It's been implemented, use Ctrl+D / ⌘+D on Mac. https://www.jetbrains.com/idea/help/debug-tool-window-console.html