visual-studio-code - 仅适用于当前打开的文件的 VSCode 过滤器问题选项卡

标签 visual-studio-code vscode-settings

我正在寻找像原子这样的 linter 功能,它可以按行、文件或项目显示问题。

是否可以过滤问题选项卡以仅显示正在可视化的文件中或在不同选项卡中打开的文件中而不是整个项目中的错误和警告?

最佳答案

VSCode v.1.23 添加了按文件过滤问题面板的功能,参见 problems view filtering in the release notes .

因此,您可以通过输入其名称(您可能只需要它的一部分)来仅包含(或通过通常的全局否定排除!)某个文件。但是,过滤仅在打开的选项卡内完成。因此,当仅打开部分文件时,您无法列出整个工作区的问题。

最近(@2019 年 11 月中旬)已将通过当前文件过滤问题面板的功能添加到 Insider's Build 中,因此应该在 2019 年 11 月的更新中。请参阅 https://github.com/microsoft/vscode/issues/30038https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/v1_41.md#problems-panel

More predefined filters are added to the Problems panel. You can now filter problems by type and also see problems scoped to the current active file.



demo of filter problems by current file.

关于visual-studio-code - 仅适用于当前打开的文件的 VSCode 过滤器问题选项卡,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42699972/

相关文章:

visual-studio-code - VS Code 中的文档大纲

javascript - 转到 Typescript Source Definition 而不是 Visual Studio Code 中的 Compiled Definition

visual-studio-code - 从边栏中的 VS Code 中删除不需要的选项卡

ruby - 如何在 Visual Studio Code 上调试 Ruby 代码?

visual-studio-code - 如何使用 Rust 程序禁用 VS 代码中的提示行?

node.js - 我可以使用 VSCode 在本地运行/调试 Heroku Node.js 应用程序吗?

visual-studio-code - 编辑器自定义 : how to change color of boolean keywords?

git - 在 VSCode 中更改 Git 帐户

javascript - 生成 .prettierrc 文件

visual-studio-code - 不用 ctrl+space 自动完成