Android Studio shortcut keys for the most comprehensive Mac

Source: Internet
Author: User

Action Mac OSX Win/linux
Comment Code (//) CMD +/ Ctrl +/
Comment Code (/**/) CMD + Option +/ Ctrl + Alt +/
Formatting code CMD + Option + L Ctrl + Alt + L
Clear Invalid Package reference Option + Control + O Alt + Ctrl + O
Find CMD + F Ctrl + F
Find + Replace CMD + R Ctrl + R
Move code up and down Option + Shift + up/down Alt + Shift + up/down
Delete Row CMD + Delete Ctrl + Y
Expand Narrow Selection Option + Up/down Ctrl + W/ctrl + Shift + W
Quick Build Structure CMD + Option + T Ctrl + Alt + T
Quick Overwrite Method Ctrl + O Ctrl + O
Quick position to beginning/end CMD + left/right Ctrl + left/right
Collapse Unwind code block CMD + Plus,minus Ctrl + Plus/minus
Collapse Expand all code blocks CMD + Shift + plus,minus Ctrl + Shift + plus,minus
File method Structure CMD + F12 Ctrl + F12
Find the location of the call Ctrl + Option + H Ctrl + Alt + H
Uppercase and lowercase conversions CMD + Shift + U Ctrl + Shift + U

Code highlighting

Osx:shift + CMD + F7

Win/linux:alt + J

Code highlighting up Search

Osx:shift + CMD + G

Win/linux:shift + F3

Code highlighting down search

Osx:cmd + G

Win/linux:f3

File method Structure

Osx:cmd + F12

Win/linux:ctrl + F12

Find the location of the call

Osx/win/linux:ctrl + Alt + H

Quick Find Definition

Osx:cmd + Space

Win/linux:ctrl + Shift + I

Collapse Unwind code block

Osx:cmd + Plus,minus

Win/linux:ctrl + Shift + plus/minus

Collapse Expand all code blocks

Osx:cmd + Shift + plus,minus

Win/linux:

Add Bookmark

Osx:f3

Win/linux:f11

Add Bookmark ID

Osx:alt + F3

Win/linux:ctrl + F11

Show bookmarks

Osx:cmd + F3

Win/linux:shift + F11

Find an action

Osx:cmd + Shift + A

Win/linux:ctrl + Shift + A

Move code up and down

Oxs/win/linux:alt + Shift + up/down

Delete Row

Osx:cmd + Delete

Win/linux:ctrl + Y

Quickly copy rows down

Osx:cmd + D

Win/linux:ctrl + D

Expand Narrow Selection

Osx:alt + Up/down

Win/linux:ctrl + W/ctrl + Shift + W

Quick Build Structure

Osx:cmd + Alt + T

Win/linux:ctrl + Alt + T

Quick Overwrite Method

Osx:ctrl + O

Win/linux:

Quick position to beginning /End

Osx:cmd + left/right

Generate code by template

Osx:cmd + J

Win/linux:ctrl + J

Or.

Comment Code (//)

Osx:cmd +/

Win/linux:

Comment Code (/**/)

Osx:cmd + Alt +/

Win/linux:

Formatting code

Osx:cmd + Alt + L

Win/linux:

Quick Selection

Osx:alt + F1

Win/linux:alt + F1

Quick Move

Osx:ctrl + Up/down

Win/linux:

Quick rewind to end of line

Osx:ctrl + Shift + J

Win/linux:ctrl + Shift + J

Shortcut recently opened

Osx:cmd + E

Win/linux:ctrl + E

Clear Invalid References

Alt + Control + O

Win/linux:alt + Control + O

Code completion

CMD + Shift + Enter

Win/linux:ctrl + Shift + Enter

Prompt for error resolution

Alt + Enter

Win/linux:alt + Enter

Hint parameter type

CMD + P

Win/linux:ctrl + P

Find + Replace

CMD + R

Win/linux:ctrl + R

Find

CMD + F

Win/linux:ctrl + F

Reformat Code
    • CTRL + ALT + L (Win)
    • OPTION + CMD + L (MAC)
Show docs for selected API
    • CTRL + Q (Win)
    • F1 (MAC)
Show Parameters for selected method
    • CTRL + P
Generate Method
    • ALT + Insert (Win)
    • CMD + N (MAC)
  Jump to source
    • F4 (Win)
    • CMD + down-arrow (MAC)
Delete Line
    • CTRL + Y (Win)
    • CMD + Backspace (MAC)
Search by symbol name
    • CTRL + ALT + SHIFT + N (Win)
    • OPTION + CMD + O (MAC)
Project and editor key commands Build
    • CTRL + F9 (Win)
    • CMD + F9 (MAC)


Build and run

    • SHIFT + F10 (Win)
    • CTRL + R (MAC)


Toggle Project Visibility

    • ALT + 1 (Win)
    • CMD + 1 (MAC)


Navigate Open Tabs

    • ALT + Left-arrow; ALT + right-arrow (Win)
    • CTRL + Left-arrow; CTRL + right-arrow (MAC)


Open Class File Symbol
Open class

    • CTRL + N (Win)
    • Cmd+o (MAC)


Open file

    • Ctrl+shift+n (Win)
    • Cmd+shift+o (MAC)


Open Symbol

    • Ctrl+shift+alt+n
    • Cmd+alt+o


Recent Files opened

    • Ctrl+e (Win)
    • Cmd+e (MAC)


Recently edited files

    • Ctrl+shift+e (Win)
    • Cmd+shift+e (MAC)


Previous next/previous Error

    • SHIFT-F2/F2 (Win)


Last edited location

    • Ctrl+shift+backspace (Win)
    • Cmd+shift+backspace (MAC)

Go to Declaration
    • Ctrl+b (Win)
    • Cmd+b (MAC)
Go to Super
      • Ctrl+u (Win)
      • Cmd+y (MAC)

Android Studio shortcut keys for the most comprehensive Mac

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.