IntelliJ IDEA: send EOF symbol to Java application

时间秒杀一切 提交于 2020-01-31 06:09:00

问题


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

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