vscode中的flutter如何去除蓝线

Dur*_*Roy 11 visual-studio-code flutter

在此输入图像描述在此输入图像描述在此输入图像描述

我正在使用 Visual Studio Code 如何删除这条蓝线

Hyg*_*dao 7

您可能想要的只是仅删除蓝线,而不删除其他内容,然后找到该文件pubspec.yaml并删除或注释该行flutter_lints。保存并确保重新启动应用程序。


cod*_*one 6

在页面开头注释此行

// ignore_for_file: prefer_const_constructors
Run Code Online (Sandbox Code Playgroud)

例子:

这里


小智 1

Press command+shift+p (open command pallete)
Then type Disable Error Squiggles.
And click on that Disable Error Squiggles.
Run Code Online (Sandbox Code Playgroud)