CoDe
CoDe

Reputation: 11156

How to search method in a file in Android Studio

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/

Upvotes: 67

Views: 40652

Answers (6)

Ugo
Ugo

Reputation: 652

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

Upvotes: 1

yoAlex5
yoAlex5

Reputation: 34391

Find method in current file

⌘ Command + F12

Find Symbols in Project

⌘ Command + ⌥ Option + O

[Find shortcuts]

Upvotes: 0

AndroCoder
AndroCoder

Reputation: 1689

Windows : CTRL + F12

Mac : cmd + F12

  • And type the name it will show the list.

Upvotes: 156

tuoxie007
tuoxie007

Reputation: 1236

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

Upvotes: 8

Maduro
Maduro

Reputation: 725

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.

Upvotes: -1

Suhas
Suhas

Reputation: 1471

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.

Upvotes: 30

Related Questions