How to clear vs code terminal when running RUN CODE? - Stack Overflow

I'm learning python, and that when running my code through RUN CODE, it first cleans up the above

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 what is the problem? Do you get error or what? Did you tried to use cls directly in console? maybe it has to be clear or something else? – furas Commented Mar 2 at 18:18
  • You can just ise print ("") untill you have a blank console. – Kovy Jacob Commented Mar 2 at 19:38
Add a comment  | 

1 Answer 1

Reset to default 0

Use setting:

"code-runner.clearPreviousOutput": true

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745118926a4612297.html

相关推荐

  • How to clear vs code terminal when running RUN CODE? - Stack Overflow

    I'm learning python, and that when running my code through RUN CODE, it first cleans up the above

    2小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信