停止IDE显示常量值

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

Stop IDE from showing constant values

问题

你好!要停止 JetBrains GoLand IDE 显示内联常量值,你可以按照以下步骤进行操作:

  1. 打开 GoLand IDE。
  2. 在菜单栏中选择 "File"(文件)。
  3. 选择 "Settings"(设置)。
  4. 在弹出的窗口中,选择 "Editor"(编辑器)。
  5. 在左侧面板中,选择 "Code Editing"(代码编辑)。
  6. 在右侧面板中,找到 "Show inline hints"(显示内联提示)选项。
  7. 取消勾选 "Constants"(常量)选项。
  8. 点击 "Apply"(应用)或 "OK"(确定)保存更改。

这样,GoLand IDE 将不再显示内联常量值。

希望对你有帮助!如果还有其他问题,请随时提问。

英文:

How can I make JetBrains GoLand IDE to stop showing me inline constant values?

停止IDE显示常量值

I've tried to search it in the setting, in the help menu, and also ask Google (and chat), but didn't even know how to call it.

It is honestly one of the most useless and annoying features they added (IMO, I'm sure it has some good benefits, but I can't see it right now lol)

Thanks

答案1

得分: 4

要禁用内联提示,可以按照以下步骤从首选项菜单进行设置:

  1. 打开首选项菜单:Preferences (command + ,)
  2. 进入编辑器选项:Editor
  3. 找到内联提示选项:Inlay Hints
  4. 进入数值选项:Values
  5. 取消勾选 Go

你可以参考下面的图片来进行设置:

停止IDE显示常量值

英文:

To disable inlay hints from the preferences menu.

Preferences (command + ,) -> Editor -> Inlay Hints -> Values -> uncheck Go

停止IDE显示常量值

huangapple
  • 本文由 发表于 2023年5月8日 22:10:16
  • 转载请务必保留本文链接:https://go.coder-hub.com/76201412.html
匿名

发表评论

匿名网友

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

确定