X
X
xpaco2022-01-18 09:05:07
Syntax highlighting
xpaco, 2022-01-18 09:05:07

GoLand IDE: How to remove syntax highlighting for unused variables?

Hello!
Problem: When I just declare a variable, GoLand immediately highlights it with an error like: " The variable is not used anywhere "; I don't like this behavior of the IDE. I have not yet had time to use it anywhere, but only announced it.

Actually, subject, tell me, please, how to remove this syntax highlighting (namely, about unused variables) in GoLand?
61e65860632a2057889142.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Daniil Maslov, 2022-01-18
@s0xzwasd

This syntax highlighting cannot be turned off, because the Go language does not allow unused variables to be left in the code, which some other languages ​​allow, a compilation error occurs.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question