question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to input after running?

See original GitHub issue

for example in c++,

cin >> t;

How can I input?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:20
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

107reactions
formulahendrycommented, Mar 11, 2017

For input support, please use below setting (File->Preference->Settings) to run code in Integrated Terminal:

{
    "code-runner.runInTerminal": true
}
3reactions
agoeden12commented, Jun 4, 2020

In case you run into issues with a bash error like “bash: cd: too many arguments” then I found this to be a solution in the visual studio code settings for code runner: "code-runner.executorMap": { "cpp": "g++ $fileName -o $fileNameWithoutExt.exe && './$fileNameWithoutExt.exe'" }

Read more comments on GitHub >

github_iconTop Results From Across the Web

8.2. Catching user input - The Linux Documentation Project
8.2.1. Using the read built-in command ; -e, readline is used to obtain the line. ; -n NCHARS, read returns after reading NCHARS...
Read more >
User Input - Bash Scripting Tutorial
Line 6 - Run the command read and save the users response into the variable varname; Line 8 - echo another message just...
Read more >
How can I get user input through terminal, while the program ...
1 Answer 1 ... You can do it with fork() and kill() , child process handle printf() , parent process handle userinput ,...
Read more >
Taking input from console in Python - GeeksforGeeks
The Python Console accepts command in Python which you write after the prompt. Accepting Input from Console User enters the values in the ......
Read more >
How to Accept User Input to Python Scripts
Open a terminal and run the python command to access Python. python ... Now run the input() commands below, one after another.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found