I'm learning python, and that when running my code through RUN CODE, it first cleans up the above content in the terminal and then runs the code.
I've already tried this code:
"code-runner.runInTerminal": true,
"code-runner.executorMap": {
"python": "cls && python -u \"${file}\""
}
I'm learning python, and that when running my code through RUN CODE, it first cleans up the above content in the terminal and then runs the code.
I've already tried this code:
"code-runner.runInTerminal": true,
"code-runner.executorMap": {
"python": "cls && python -u \"${file}\""
}
Share
Improve this question
edited Mar 4 at 16:50
Hilory
2,2187 gold badges14 silver badges30 bronze badges
asked Mar 2 at 15:44
Nilkeson SouzaNilkeson Souza
1
2
|
1 Answer
Reset to default 0Use setting:
"code-runner.clearPreviousOutput": true
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745118926a4612297.html
cls
directly in console? maybe it has to beclear
or something else? – furas Commented Mar 2 at 18:18print ("")
untill you have a blank console. – Kovy Jacob Commented Mar 2 at 19:38