简体   繁体   English

在 Visual Studio Code 中简化 Python Output

[英]Simplify Python Output in Visual Studio Code

In visual studio code I want run simple python code (using the code runner extension) and it gives me info about runtime and where the file is.在 Visual Studio 代码中,我想运行简单的 python 代码(using the code runner extension) ,它为我提供了有关运行时和文件位置的信息。 I don't want that, can I cut it out and only have the output ?我不想要那个,我可以把它剪掉,只有output吗?

图片

Since you use the "Code Runner" extension, we can set it:由于您使用“Code Runner”扩展,我们可以设置它:

  1. We can add the following settings in " settings.json ":我们可以在“ settings.json ”中添加如下设置:

"code-runner.showExecutionMessage": false,

  1. or find the " showExecutionMessage " option in "settings", uncheck it:或在“设置”中找到“ showExecutionMessage ”选项,取消选中它:

    在此处输入图像描述

Run:跑:

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM