Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Codes with any form of input do not run on code runner #72

Closed
jebin007 opened this issue Feb 2, 2017 · 4 comments

Comments

Projects
None yet
4 participants
@jebin007
Copy link

commented Feb 2, 2017

Hi there. If I try to run my code using code runner and if there is any sort of input. For eg : cin in c++ then the output window just freezes and cannot accept any inputs. I then have to manually stop the code runner. I need some ideas to fix this.

@formulahendry

This comment has been minimized.

Copy link
Owner

commented Feb 3, 2017

Hi @thebigJ007 , you could go to File > Preferences -> User Settings to add setting as below:

{
    "code-runner.runInTerminal": true
}

Then you could run C++ in built-in terminal with input support

@shenhui28

This comment has been minimized.

Copy link

commented Feb 6, 2017

What is built-in terminal? I can only see output window when running code through code runner...

@formulahendry

This comment has been minimized.

Copy link
Owner

commented Feb 6, 2017

@shenhui28 It is the built-in terminal: https://code.visualstudio.com/docs/editor/integrated-terminal
If you set "code-runner.runInTerminal", the code will run in built-in terminal. But if the file is untitled or running code snippet of selection, it is still in Output Window.

@shankar-shiv

This comment has been minimized.

Copy link

commented Mar 25, 2018

Thanks formulahendry !!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.