问题
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.
回答1:
It's been implemented, use Ctrl+D / ⌘+D on Mac. https://www.jetbrains.com/idea/help/debug-tool-window-console.html
回答2:
In Dec 2012, it was still not possible : http://devnet.jetbrains.com/thread/436131
来源:https://stackoverflow.com/questions/16484297/intellij-idea-send-eof-symbol-to-java-application