AndroidStudio Shortcut Key Usage Summary

Source: Internet
Author: User

AndroidStudio Shortcut Key Usage Summary

Ctrl + G/Ctrl + Alt + Shift + G: Query where a variable or function or class is used or called. The latter is a complex manifestation of the former, and you can select a query range.

Alt + H: search function, global search

F4: View class inheritance relationships

F2: see the documentation for function instructions)

Ctrl + E: view recently opened files

Ctrl + Shift + E: view recently edited files

Double Shift: global search, which is slightly different from Alt + H. This is a global file search, at the file name level.

Ctrl + Shift + R: Quickly locate the file you want to open.

Alt + cursor: The line of code moving up where the cursor is located

Alt + cursor: Move the line of code down where the cursor is located

Ctrl + D: Delete the line of code where the cursor is located

Ctrl + X: Cut the line of code at the cursor position

Alt + Shift + ↓/Ctrl + C: copy the code in the row where the cursor is located to the next line

Ctrl + O: quick search for functions and variables in the current class

Ctrl + Shift + R: Change the name

Alt + Enter: import package

Alt + ↑: move back to the last view or edit location

Alt + →: Move forward. For example, if you want to go back after you locate the last vertex, you can use this shortcut key.

Ctrl +/: when the line comment, press the reverse comment again.

Ctrl + Shift +/: Comments to the module. Press the reverse comments again. Note that the "/" here cannot use the keypad.

Ctrl + Shift + keypad/: the folding code Ctrl + Shift + keypad * is no longer working. Today it is no longer available. We will solve this problem and update it later ), of course, there is no keypad in The Notebook. You can change the shortcut key by yourself.

Ctrl + Alt + S: Open the settings Interface

Ctrl + Alt + Shift + S: Open the Project Structure Interface

Alt + Shift + X: Run)

Alt + Shift + D: Debug and run)

Ctrl + F9: compile the project

Ctrl + Shift + K: push the file to Servergit)

Debug shortcut keys

F5: but does not debug it into the function.

F6: but does not enter the function after debugging.

F7: it is returned by the function.

F8: Execute to the next breakpoint. If there is no breakpoint, the execution is complete.

Action Mac OSX Win/Linux
Code annotation (//) Cmd +/ Ctrl +/
Code annotation (/**/) Cmd + Option +/ Ctrl + Shift +/
Format code Cmd + Option + L Ctrl + Alt + L
Clear invalid package reference Option + Control + O Alt + Ctrl + O
Search Cmd + F Ctrl + F
Search + replace Cmd + R Ctrl + R
Move code up/down Option + Shift + Up/Down Alt + Shift + Up/Down
Delete row Cmd + Delete Ctrl + Y
Expand and narrow the selected range Option + Up/Down Ctrl + W/Ctrl + Shift + W
Quickly generate struct Cmd + Option + T Ctrl + Alt + T
Quick overwriting Method Ctrl + O Ctrl + O
Quickly locate the beginning/end of a row Cmd + Left/Right Ctrl + Left/Right
Collapse and expand code blocks Cmd + Plus, Minus Ctrl + Plus/Minus
Collapse and expand all code blocks Cmd + Shift + Plus, Minus Ctrl + Shift + Plus, Minus
File method Structure Cmd + F12 Ctrl + F12
Locate the call location Ctrl + Option + H Ctrl + Alt + H
Case-sensitive Conversion Cmd + Shift + U Ctrl + Shift + U

Original article address: blogs.zmit.cn/6313.html

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.