Android Studio shortcut keys (MAC)

Source: Internet
Author: User

Code

Alt+f7:find usage
Alt+command+l: Formatting code
Alt+command+o: Optimize import (remove useless import)
Command+o:override Methods
Command+i:implement Methods
Command+b:declaration View Definitions
Alt+command+b:implementations view its implementation
Command+u:super Method (Class)
control+ up/down direction key: Previous/next Method
(shift+) F2: Express positioning and highlighting error (deprecate,unused)
Command+z:undo Revocation
Shift+command+z:redo Typing
Alt+enter: Introducing packages, adding comments ...
Control+enter:generate Setter,getter ...
Shift+command+t: Add test
Command+w:extend Selection
Shift+command+w:shrink Selection
Command+p: Parameter Hints
Command+y (X): Delete current line (cut current row)
COMMAND+F11: Add/Cancel Bookmark
SHIFT+F11: Show Bookmark list
command++/-: Expand Shrink Code
shift+command+ up/down ARROW key: Move line Up/move line down

Search

Command+f:find
Command+r:replace
Control+shift+f:find in Path
Control+shiftï+r:replace in Path
Alt+command+ left and RIGHT ARROW key: Back/forward operation
Command+e:recent File
shift+command+e:recently Change Files
Shift+shift:search method or Class (Search everywhere:command+n,shift+command+n,shift+alt+command+n)
Command+n:search Class
Shift+command+n:search File
Shift+alt+command+n:search Symbol

Run/debug

Shift+f10:run
Shift+f9:debug
Command+f9:make Project
Shift+command+f9:make Module
COMMAND+F2: Close the currently executing task
Command+f8: Add/Cancel Breakpoints
Shift+command+f8: View All Breakpoints
Debug:
F7:step into
F8:step over
Shift+f8:step out
F9:resume
Alt+f9:run to Cursor

Refactor

SHIFT+F6: Renaming
COMMAND+F6: Quickly modify the parameters of a function, return a value or class to add generics, etc.
F6:move fast moving methods or classes
F5:copy Fast Mobile Class
ALT+COMMAND+C: Extracting constant variables
ALT+COMMAND+V: Extract variable (local variable)
Alt+command+f: Extracting field variables
Alt+command+m: Extract Method

Window

Control+ left and RIGHT ARROW keys: Tab toggle
ALT+F4: Close the current tab
Esc+command: Toggles the current window
Shift+esc: Hide Sidebar

VCS

Command+k:commit changes
Shift+command+k:push Commit Changes
Command+t:update Project

Setting

Command+,:android Studio Preferences
Command+;:project Structure

Android Studio shortcut keys (MAC)

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.