我正在寻找像原子这样的 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/30038和 https://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.
关于visual-studio-code - 仅适用于当前打开的文件的 VSCode 过滤器问题选项卡,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42699972/