Automatic text input

Answered

How can I make Clion behave like online coding platforms like codechef. I want that as soon as I run a program clion automatically inserts a predefined input into the console so that I do not have enter it again and again.

1 comment
Comment actions Permalink

Hello!

In CLion 2020.1 EAP we've implemented input redirection: https://blog.jetbrains.com/clion/2020/03/clion-2020-1-eap-input-redirection-config-macros/#input_redirection. So now you can redirect input from a file to stdin of your application. Hope that helps in your scenario.

1

Please sign in to leave a comment.