Mở nhanh
Mở Class: Ctrl + N
Mở File: Ctrl + Shift + N
Mở Task: Alt + Shift + N
Di chuyển
Đến vị trí con trỏ cũ: Ctrl + Alt + Left/Right (làm gì xong về chỗ cũ)
Đến vị trí chỉnh sửa cũ: Ctrl + Shift + backspace
![Android Studio Logo](https://i0.wp.com/www.developerphil.com/assets/17-navigate-previous-changes.gif)
Highlight Code: ctrl+shift+f7 (Hủy =esc)
Chuyển con trỏ đến Methods, Inner Classes khác: alt+up/down
Mở File Structure nhanh: Ctrl + F12
Xem cấp bậc Method (The Call Hierarchy Popup): ctrl+alt+h
Xem định nghĩa nhanh: ctrl+shift+i![Android Studio Logo](https://i0.wp.com/www.developerphil.com/assets/05-quickdefinition.gif)
Đóng hiện Nhóm code: ctrl+shift+plus/minus
Bookmarks!
Toggle Bookmark: F11
Toggle Bookmark With Mnemonic: ctrl+f11
Nếu bookmark có số: ctrl+number
Show Bookmarks shift+f11
Tìm Hành động trong menu: ctrl+shift+a
Chuyển dòng lên xuống: alt+shift+up/down
Xóa dòng: ctrl+y
trích: http://www.developerphil.com/android-studio-tips-of-the-day-roundup-1/
Nhân đôi dòng (Duplicate): ctrl+d
Tăng, Giảm vùng chọn: ctrl+w / ctrl+shift+w
Rào (surround) hàm (thêm if, …): ctrl+alt+t
Mở File gần đây: Ctrl + E, Ctrl + Tab
Di chuyển Method: ctrl+shift+up/down
Hoàn thành Method, code nhanh, khỏi chuyển xuống cuối: ctrl+shift+enter
Kết hợp dòng: ctrl+shift+j
Chọn Nhanh vị trí trong (Structure, file…, bar): alt+f1
Unwrap/Remove: ctrl+shift+delete
Toggle Breakpoints: Ctrl+F8
Đổi biến khi Debug: Right Click Breakpoint
Tạo Log Debug: Nhấp Phải Breakpoint
Tạo Breakpoint Tạm: Ctrl+Alt+Shift+F8 = Alt+Left Click in the left gutter
Ẩn Breakpoint: Alt+Left Click on an existing breakpoint in the left gutter
Đính kèm hàm khi Debug: Build / Attach to Android Process
Xem Biến nhanh qua cửa sổ (Evaluate Expression): Alt+F8
Xem giá trị biến (Inspect Variable): Alt+Left Click biến
Mark Object: right-click and select “Mark Object”
Phân tích dữ liệu tại chỗ: Menu: Analyze → Analyze Data Flow to Here
Chọn nhiều, thay đổi nhiều dòng cùng lúc: Alt+J
Chọn nhiều Cột: Alt+MouseDrag = Shift+Alt+Insert
Postfix Completion:
gợi ý từ khóa:
- .for (for a foreach)
- .format (wraps a string in String.format())
- .cast (wraps a statement in a type cast)
So sánh với Clipboard: right-click the selection and select Compare With Clipboard
Find action: compare with clipboard
VCS Operation Popup: Alt+`
Compare With Branch (Git):
- Menu (for git): VCS -> Git -> Compare With Branch
- Find Actions: Compare With Branch
Trích: http://www.developerphil.com/android-studio-tips-of-the-day-roundup-4/
Enter vs Tab for Code Completion: enter or tab
Navigate to parent: Ctrl+U
Return to the Editor
- Return and keep panel open: Escape
- Close panel and Return: Shift+Escape
Jump to Last Tool Window (F12)
Hide All Panels (Ẩn mọi Panels): Ctrl+Shift+F12
Thông tin tham số trong Hàm (Parameter Info): Ctrl+P
Đổi Tab nhanh: Ctrl+Tab
Thông tin hàm: Ctrl+Shift+Q, Ctrl + Q
Trích: http://www.developerphil.com/android-studio-tips-of-the-day-roundup-5/
Refactor This: Ctrl+Alt+Shift+T
Mở file Liên quan (Related File): Ctrl+Cmd+Up
Extract Variable: Ctrl+Alt+V
Extract Parameter: Ctrl+Alt+P
Extract Method: Ctrl+Alt+M
Gom dòng (Inline): Ctrl+Alt+M
Đổi tên: Shift+F6
Pull Up / Push Down: Ctrl+Alt+Shift+T and choose pull members up / push members down
Trích: http://www.developerphil.com/android-studio-tips-of-the-day-roundup-6/