有没有办法在 GoLand (JetBrains IDE) 中设置线条的背景颜色?

Is there any way to set background color of lines in GoLand (JetBrains IDE)?

有什么方法可以在 GoLand (JetBrains IDE) 中为某些行设置背景颜色,以便我可以在我阅读的代码上签名?

这可以吗?不管是 IDE 函数还是通过某个插件。

Sticky selection 可以做到这一点。

这里有简单的介绍:

you can mark a selection to be permanently highlighted, even when your caret moves away. Inspired by "Style token" of Notepad++. You can define an arbitrary number of Paint Groups. Selecting the appropriate editor action (keystroke or context menu), the all occurrences of currently selected text will be added to the Paint Group and will be permanently highlighted (until you clear the selection with an other editor action). So you can have different text fragments to be selected with the same Paint Group. The Paint Groups are kept when IntelliJ is closed.

You can set different colours for each Paint Group
You can set a marker to be visible on the right side of the editor
You can add multiple selections to the same group
You can convert a Paint Group to multi caret selection (and thus edit, copy, delete, etc. it)
For convenience you can undo the last addition (until the document is edited)
You can cycle through each element in a given Paint Group or in all Paint Groups
Keymap actions are added dynamically for paint, clear and convert as you add more Paint Group

有几种方法可以标记一些行并将它们添加到“正在阅读”列表中:

  • 书签。 它是 IntelliJ-based IDE 中的 built-in 功能。您可以转到 Authenticator 接口声明和 select 行编辑 |书签 |在主菜单中切换 Bookmark查看所有书签 |工具 Windows |书签.
  • 第 3 方插件。我知道 MultiHighlight 支持 select 代码片段的插件。