Eclipse 检查 (Ctrl + Shift + I) 在 IntelliJ IDEA(社区版)中等效
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18073545/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Eclipse inspection (Ctrl + Shift + I) equivalent in IntelliJ IDEA (Community Edition)
提问by cupakob
Under Eclipse I can inspect expressions/variables in debug mode with Ctrl+Shift+I. In IntelliJ IDEA (Community Edition), I can add expressions/variables to the watches, but on the next debug they are lost.
在Eclipse中我可以检查在调试模式表达式/变量与Ctrl+ Shift+ I。在 IntelliJ IDEA(社区版)中,我可以向手表添加表达式/变量,但在下一次调试时它们会丢失。
Is there any way to inspect variables and expression on the fly when I'm debugging?
当我调试时,有什么方法可以即时检查变量和表达式吗?
回答by cupakob
Quick evaluate expression
with Ctrl+ Alt+ F8(or on a Mac: Cmd+ Opt+ F8) gives me exactly what I want.
Quick evaluate expression
与Ctrl+ Alt+ F8(或Mac上:Cmd+ Opt+ F8)给我我想要的东西。
回答by Vic
Do you mean "Evaluate expression" action Alt + F8?
您的意思是“评估表达”动作Alt + F8?
Many more useful shortcuts are in Intellij Reference Card.
Intellij Reference Card 中有更多有用的快捷方式。
回答by Sushant Gaikwad
Ctrl+ Alt+ F8will work. This shortcut may trigger the Intel HD Graphics hotkey for resetting display settings.
Ctrl+ Alt+F8会工作。此快捷方式可能会触发 Intel HD Graphics 热键以重置显示设置。
Alt+ Left Mouse Key
will also work.
Alt+Left Mouse Key
也能用。
If you want to view/edit the shortcuts, you can go to Settings
(Ctrl+ Alt+ S) -> Keymap
and search for Quick Evaluate Expression
如果要查看/编辑快捷方式,可以转到Settings
( Ctrl+ Alt+ S) -> Keymap
并搜索Quick Evaluate Expression
回答by Vinit Solanki
Ctrl+ Alt+ 8in case of Intellij Idea 2019.2 and Ubuntu 18.04.
Ctrl+ Alt+8在 Intellij Idea 2019.2 和 Ubuntu 18.04 的情况下。
回答by Jibin TJ
In mac, alt+clicking variables help !
在 mac 中,alt+单击变量有帮助!