如何让 GoLand 像 VS Code 一样持续检查所有文件?

huangapple go评论110阅读模式
英文:

How to have GoLand constantly inspect all files like VS Code does

问题

有人知道如何让GoLand持续检查代码中的错误吗?目前它只检查打开的文件,并在右上角显示状态,就像这样:

如何让 GoLand 像 VS Code 一样持续检查所有文件?

但是在VS Code中,它会持续检查工作模块的所有错误。

如何让 GoLand 像 VS Code 一样持续检查所有文件?

GoLand确实提供了手动检查,但效率不高,而且经常检查无关的模块(当我设置为当前模块时,它无法检测到任何错误)。

英文:

Does anyone know how to have GoLand constantly inspecting errors in code? Right now it inspects ONLY the open files and shows the status on the top-right corner like this:

如何让 GoLand 像 VS Code 一样持续检查所有文件?

But in VS Code, it constantly checks all errors of the working module.

如何让 GoLand 像 VS Code 一样持续检查所有文件?

GoLand does offer manual inspection but it's not as efficient and often checks irrelevant modules too (when I set it current module then it can't detect any errors)

答案1

得分: 1

Goland问题GO-4618中提到的:

>出于性能和可用性的原因,他们可能会将问题工具窗口的内容限制为当前编辑器。

GO 9494正在跟踪该问题:“自定义问题视图报告范围”

>应该有一种方法来自定义问题视图窗口以支持以下范围:
>
> - 当前文件
> - 当前文件的包(我会默认选择这个)
> - 所有打开的文件包
> - 整个项目(IDEA-68854

尽管仍在进行中(2021年10月)。

英文:

As mentioned in Goland issue GO-4618:

> They might be limiting the contents of the Problems tool window to just the current editor for performance and usability reasons.

GO 9494 is following the issue: "Customize Problems View reporting scope"

>There should be a way to customize the Problems View window to support the following scopes:
>
> - Current File
> - Current File's Package (I'd default to this)
> - All Opened Files Packages
> - Whole Project (IDEA-68854)

Still in progress (oct. 2021) though.

huangapple
  • 本文由 发表于 2021年10月14日 03:20:08
  • 转载请务必保留本文链接:https://go.coder-hub.com/69561193.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定