IntelliJ IDEA中查找方法/函数的快捷方式是什么?

本文翻译自:What is the shortcut in IntelliJ IDEA to find method / functions?

I know that Ctrl + N is to find classes and it is very useful. 我知道Ctrl + N是查找类,它非常有用。 But what about methods? 但是方法怎么样?


#1楼

参考:https://stackoom.com/question/Fkfl/IntelliJ-IDEA中查找方法-函数的快捷方式是什么


#2楼

ctrl + F12 ( cmd + F12 on macOS) will show all members of the current class in a popup windown and let you pick up one. ctrl + F12 (macOS上的cmd + F12 )将在弹出窗口中显示当前类的所有成员,并让您选择一个。 It works exactly like the ctrl + o shortcut in eclipse, much faster than ctrl + alt + shift + n 它的工作方式与eclipse中的ctrl + o快捷方式完全相同,比ctrl + alt + shift + n快得多


#3楼

IntelliJ IDEA Version 12.13 Ultimate Edition: IntelliJ IDEA版本12.13终极版:

Macs: command + option + shift + N or on Menu -> Navigate > Symbol ... Macs: 命令 + 选项 + shift + N或菜单 - >导航>符号...


#4楼

Slightly beside the actual question, but nonetheless useful: The Help menu of Intellij has an option 'Default Keymap reference', which opens a PDF with the complete mapping. 稍微偏离实际问题,但仍然有用:Intellij的帮助菜单有一个选项'Default Keymap reference',它打开一个带有完整映射的PDF。 ( Ctrl + F12 is mentioned there) (那里提到了Ctrl + F12


#5楼

Android Studio on Mac Mac上的Android Studio

Command + Option + O Command + Option + O.

Opens up the Symbol lookup that you can jump to most of the methods/functions in your currently opened document. 打开符号查找,您可以跳转到当前打开的文档中的大多数方法/功能。


#6楼

SHIFT两次,您可以搜索项目中的任何类和方法。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值