Summary of Android Studio shortcut keys

Source: Internet
Author: User

代码提示

 Ctrl + Alt +Space (空格键)

Select the code, and press to select more

Ctrl + W

Copy the current line to the next line

Ctrl + D

Shear

Ctrl + X

Delete

Ctrl + Y

Code Move Up/down

Ctrl + Shift+ Up/Down

Move between methods in a class

Alt + Up/Down

Code Move Up/down

Ctrl + Shift+ Up/Down

Open a file

Ctrl + Shift+ N

Open a class

Ctrl + N

View the declaration of a variable

Ctrl + B //效果同Ctrl + 左击鼠标

View the parent class of a class

Ctrl + U

View a call to a method

Ctrl + Alt + H

To view the implementation of a method in a class

Ctrl + Shift + i

Show class structure diagram

Ctrl + H

Code returns shortcut keys

Alt + 向左箭头

Code presentation collapse, expand

Ctrl + -/+

Hide/Open Project panel

Alt + 1

Highlight error or warning quick location

F2

Find a method or variable in a class

Ctrl + Shift + Alt + N

Show current file structure

Ctrl + F12

Replication Parent class method

Ctrl + O

Add if, for, Try/catch, and so on for the selected code block

Ctrl + Alt + T
Ctrl + J //可生成 if、for、foreach、findViewById、View.Gone、Toast等代码

Code formatting

Ctrl + Alt + L

Overview of the Android Studio shortcut key

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.