vscode-code-runner
vscode-code-runner copied to clipboard
Is there a way to customize the content of terminal running program
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?
So you can locally fix that in your extension setting...
- Select your extension and open Extension Settings
- Then scroll down to Code Runner: Executor Map and click on Edit in settings.json
- Find and edit the value for "python" key as given in the photo
- Change the value from "python -u" to "python -u -i"
Hopefully this will help you.
@SaarthakTuli Thanks a lot!