Running code analysis and code inspections automatically

Hi,

I’m using Go and Visual Studio Code in parallel. In Visual Studio Code, when I open the Project Explorer, I can see that some files have issues without doing anything. The filenames are marked with a red line. Is there a similar functionality available? I’m only able to manually run this command from the problem window and thats very inefficient.

0

Hi there,

GoLand can mark files with issues directly in the Project View (similar to red lines in VS Code) once the project indexing is complete. Is this a large repository? If so, indexing may take some time. Once it's complete, problematic files should be marked with red underlines. To ensure this works, check your inspection settings: go to Settings | Editor | Inspections and verify that the appropriate inspections (syntax errors, etc.) are enabled.

Here is an example of how the highlight looks:

0

请先登录再写评论。