如何在 VSCode 终端中隐藏特定的字符串输出?

问题描述

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

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 中是否有某种“过滤器”选项?

解决方法

我没有使用过 dart 或 flutter,但 this answer for flutter 似乎恰到好处。

我认为它应该适合你。