vscode-code-runner icon indicating copy to clipboard operation
vscode-code-runner copied to clipboard

Is there a way to customize the content of terminal running program

Open ydmykr opened this issue 3 years ago • 0 comments

Before that, I made some queries. I think this should be related to "code runner. CustomCommand", but I didn't find the relevant example.

If I want to convert the command from "python test.py" to "python test.py -i", how should I set it?

ydmykr avatar Jul 04 '22 02:07 ydmykr

So you can locally fix that in your extension setting...

  1. Select your extension and open Extension Settings
  2. Then scroll down to Code Runner: Executor Map and click on Edit in settings.json
  3. Find and edit the value for "python" key as given in the photo Screenshot 2022-09-08 at 11 08 54 PM
  4. Change the value from "python -u" to "python -u -i"

Hopefully this will help you.

SaarthakTuli avatar Sep 08 '22 17:09 SaarthakTuli

@SaarthakTuli Thanks a lot!

ydmykr avatar Sep 09 '22 01:09 ydmykr