英文:
How to make a designation in 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:
And now it looks like this:
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, 勾选此选项
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论