【问题标题】:How to hide specific String Output in VSCode Terminal?如何在 VSCode 终端中隐藏特定的字符串输出?
【发布时间】:2021-07-12 08:41:20
【问题描述】:

我收到了这 2 行的垃圾邮件

V/AudioManager(10244): getStreamMaxVolume  treamType: 3
V/AudioManager(10244): getStreamVolume  streamType: 3 volume: 3

在我的终端中,我想隐藏这 2 条消息,因为它几乎不可能读取我自己的输出。这是 Flutter 的 launch.json:

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "habit_app_new",
            "request": "launch",
            "type": "dart"
        }
    ]
}

VSCode 中是否有某种“过滤器”选项?

【问题讨论】:

  • 取决于消息的来源。你在调试程序吗?如果是这样,启动配置是什么样的?
  • 我正在调试一个 Flutter 移动应用
  • 请在您的问题中显示启动配置
  • 对不起,你的意思是什么?
  • 我添加了launch.json的内容,你问的是这个吗?

标签: visual-studio-code vscode-settings


【解决方案1】:

我没有使用 dart 或 flutter,但 this answer for flutter 似乎很合适。

我认为它应该适合你。

【讨论】:

  • 我真的不明白为什么这没有出现在我的研究中。感谢您的提示!
  • 我花了一些时间才找到它。
猜你喜欢
  • 2017-01-02
  • 2014-12-14
  • 2022-07-15
  • 1970-01-01
  • 2016-09-14
  • 1970-01-01
  • 2012-04-07
  • 1970-01-01
  • 2021-10-30
相关资源
最近更新 更多