简体   繁体   English

IntelliJ —如何配置在垂直条上显示的内容

[英]IntelliJ — how to configure what to show on vertical bar

I am moving from Eclipse to IntelliJ -- overall experience has been great, but I can't find a good way to customize the vertical bar (the right-most one) to the right of the opend source file. 我正在从Eclipse迁移到IntelliJ-总体经验很棒,但是我找不到在自定义打开的源文件右边的垂直条(最右边的条)的好方法。 By defaul that is used to display the problems of my code. 通过默认用于显示我的代码的问题。

Specifically, I want to add occurrences of a selected symbol to the vertical bar. 具体来说,我想将所选符号的出现添加到垂直栏中。 I also want to change the colors of each annotation on the vertical bar. 我还想更改垂直栏上每个注释的颜色。

Where do I configure that? 我在哪里配置?

[EDIT, screenshot to show the vertical bar I am talking about] [编辑,显示我正在谈论的竖线的屏幕截图]

在此处输入图片说明

And this is the desired behavior I have in eclipse: when I highlight a symbol, the occurrence of this symbol is on the right-most vertical bar. 这是我在日食中所期望的行为:当我突出显示一个符号时,该符号的出现在最右边的垂直条上。 if I click on the block on the vertical bar, I can go to the usage of that symbol. 如果单击垂直栏上的块,则可以转到该符号的用法。 I can also change the color of that block. 我也可以更改该块的颜色。

Apologies for blacking out the code --- required by company policy. 道歉以屏蔽代码---公司政策要求。

在此处输入图片说明

Highlighted usage of a particular symbol appears in the right-hand gutter, which you have highlighted. 特定符号的突出显示用法出现在您突出显示的右侧装订线中。 What also appears is a bit of hovertext for each occurrence, telling you what context it's in and whether or not it's being assigned. 每次出现时还会出现一些悬浮文本,告诉您它处于什么上下文中以及是否已分配它。

If you click on that, then you will also be taken to its usage wherever it happens to be. 如果单击它,那么无论在何处都将被使用。

If you want to change the color of it, then that's controlled by Settings > Colors and Fonts > General > Identifier under caret (write) and Identifier under caret. 如果要更改其颜色,则由插入符号(写)下的设置>颜色和字体>常规>标识符和插入符号下的标识符控制。 Here is where you'd make the change to whichever color showed up both when you hovered over the text, and what showed up in the gutter - depending on if you were writing to that variable or not. 在这里,您可以更改鼠标悬停在文本上时显示的颜色以及装订线中显示的颜色-取决于您是否正在写入该变量。

Its under Settings->Editor->Colors & Fonts->General submenu "Identifier under Caret" from there you can set background highlight color and error stripe mark. 在“设置”->“编辑器”->“颜色和字体”->“常规”子菜单下的“插入符下的标识符”下,您可以设置背景突出显示颜色和错误条纹标记。 You will need to "Save as..." in order to edit this. 您需要“另存为...”才能对其进行编辑。

See picture with red dots near relevant information. 请在相关信息附近查看带有红点的图片。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM