67

In Eclipse there is the command Ctrl+O to search a method in a file. What is shortcut for the same command in Android Studio?

Found these solution more better:

http://mussharapp.blogspot.in/2013/07/android-studio-keyboard-shortcut.html

http://www.techrepublic.com/article/four-handy-android-studio-shortcuts-for-eclipse-users/

CoDe
  • 11,056
  • 14
  • 90
  • 197

6 Answers6

154

Windows : CTRL + F12

Mac : cmd + F12

  • And type the name it will show the list.
Agilanbu
  • 2,747
  • 2
  • 28
  • 33
AndroCoder
  • 1,669
  • 1
  • 11
  • 5
  • 2
    in mac El Capitan will just increase the volume. – Yakob Ubaidi Oct 16 '15 at 07:52
  • 4
    You may need to hold down the "fn" key while pressing a function key to actually use the function instead of the quick command. So for example, F8 will pause/play media, while fn+F8 will actually produce F8. In other words, for mac users user command + fn + F12. Not only does the list appear, but you can start typing to jump straight to a matching method name in the list. – Chad Schultz Nov 04 '15 at 17:29
  • 3
    Note: if you're looking to remap the shortcut, the command name is _File Structure_ and it's under the _Navigate_ menu – jb. Dec 23 '15 at 17:44
  • 1
    CTRL+FN+F12 // CTRL +F12 opening brightness in windows – Bytecode May 11 '16 at 06:28
  • 1
    What is the name of this command. I would like to be able to remap it, but I can't find it. – Scorb Dec 11 '18 at 21:08
29

You can search by method name or symbol name using CTRL + ALT + SHIFT + N on Windows & OPTION + CMD + O on Mac. This will search throughout the project.

Additionally, you can use CTRL + F12 on Windows and CMD + Fn + F12 on Mac to search in the current class.

Check http://developer.android.com/sdk/installing/studio-tips.html for more shortcuts.

Also, you can edit shortcuts in Preferences -> Keymap.

Suhas
  • 1,451
  • 14
  • 22
8

Press Opt + Cmd + O to search symbols on Mac.

Agilanbu
  • 2,747
  • 2
  • 28
  • 33
tuoxie007
  • 1,234
  • 12
  • 10
1

For Mac use the following key combo inside the open code file: CMD+F12

Ugo
  • 587
  • 8
  • 12
0

Find method in current file

⌘ Command + F12

Find Symbols in Project

⌘ Command + ⌥ Option + O

[Find shortcuts]

yoAlex5
  • 29,217
  • 8
  • 193
  • 205
-1

Android Studio 1.4.0 on Mac

Some one said that cmd + f12 on Mac would do the job, but it didn't work. However, press COMMAND + N -> GENERATE -> click on Override Method

EDIT

NOTE: If cmd + f12 works for you and some people, fine, very good. BUT, if it doesn't work for others, like me, then try my solution. It is a real and working solution.

Maduro
  • 713
  • 5
  • 23
  • 44
  • cmd + F12 (with fn key pressed) does the job pretty well – Varun Bhatia Apr 18 '16 at 04:49
  • @vabhatia well its not my fault that didn't work for me. This is a real unfair -1. PLUS, my answer is from OCT 23'15 which mean that if you tried today or a few weeks ago that could have change. PLUS, things doesn't work for everybody this is why if you find another solution then you add it here. This is why you see many SOLUTIONS for one question. My SOLUTION is a real and working SOLUTION. PLUS, I do specified that "IT DIDN'T WORK FOR ME" in other words, I am saying, hey guys if `cmd + F12` doesn't work for you, then try this my solution because at least it do works for me. Thank You – Maduro Apr 18 '16 at 13:51
  • @vabhatia In fact, the user found two better solutions. You see, many solutions for one question. – Maduro Apr 18 '16 at 13:55
  • PLUS: another comment stated that :** in mac El Capitan will just increase the volume.** – Maduro Apr 18 '16 at 13:56
  • -1 is not because cmd+F12 didn't work for you. Its solely because cmd+N->Generate->click on override method is not solving the problem being discussed. – Varun Bhatia Apr 19 '16 at 05:02
  • @JMASTERB sound like you're looking for override method shortcut instead.It's the wrong subject but it is cmd+O – Steve Moretz Feb 09 '19 at 17:02