Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ IDEA: send EOF symbol to Java application

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.

like image 890
Tvaroh Avatar asked May 10 '13 14:05

Tvaroh


People also ask

How do you simulate EOF in clion?

Type in ^ on a newline, in the console after your input, I found it does the trick.

How do I get the run symbol in IntelliJ?

In the same menu as the picture above 1 Click main toolbar then toolbar run actions. 2 At the "Toolbar Run Actions" leve, click the + button and "add action". 3 In the new popup, choose the "main menu" folder then the "run" folder. 4 Click on the "Run" icon and click ok.


1 Answers

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

like image 106
Pavel Avatar answered Sep 19 '22 16:09

Pavel