在IntelliJ中如何进行指定

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

How to make a designation in IntelliJ

问题

我使用IntelliJ并不小心点击了某个地方,删除了所有的标记,或者叫它什么,我不知道。

它之前是这样的:
在IntelliJ中如何进行指定

现在是这样的:
在IntelliJ中如何进行指定

如何将它们恢复?

英文:

I use IntelliJ and clicked somewhere accidentally and deleted all the designations, or what it's called, I don't know.

It looked like this:
在IntelliJ中如何进行指定

And now it looks like this:
在IntelliJ中如何进行指定

How to get them back?

答案1

得分: 3

那些被称为"内嵌提示",而不是"指示",你可以在设置中找到它们。

你可以在菜单"文件"(或者在macOS上是"IntelliJ IDEA"菜单),然后选择"设置",再选择"编辑器","内嵌提示",然后在"参数名称"下找到它们,选择"Java"。我认为其中一个是"'新'表达式",但你也可以启用它们全部。

英文:

Those are called "inlay hints", not "designations", and you can find them in the settings.

You can find this under menu File (or menu IntelliJ IDEA on macOS), Settings, Editor, Inlay Hints and then under Parameter Names, Java. I think this one is "'New' expressions", but you could also enable them all.

答案2

得分: 2

For IntellIJ IDEA 2022: 设置 -> 编辑器 -> 内嵌提示 -> 参数名称 -> Java, 勾选此选项

在IntelliJ中如何进行指定

英文:

For IntellIJ IDEA 2022: Settings -> Editor -> Inlay Hints -> Parameter names -> Java , Check this
在IntelliJ中如何进行指定

huangapple
  • 本文由 发表于 2023年3月9日 20:42:19
  • 转载请务必保留本文链接:https://go.coder-hub.com/75684776.html
匿名

发表评论

匿名网友

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

确定