Common shortcut keys for Android Studio

Source: Internet
Author: User

Ctrl + Alt + L Code Formatting

Ctrl + N Find Class

Alt + Insert Generate code ( such as Get,set method, constructor, etc.)

ctrl+f Find Text

ctrl+e recently opened files

Ctrl +/ single-line comment

Ctrl +shift +/ Multi-line Comment code

Ctrl +e the list of recently edited files can be displayed

Ctrl +w You can select the word and then the statement and then the function.

ctrl+[ or] you can jump to the beginning of the curly brace

Ctrl +alt +t The code can be wrapped within a block, such as Try/catch If/else

Ctrl + ALT + O remove a useless import

Shift+alt+insert Block Selection

Ctrl+click jump to the place where a class, method, or variable is declared

Ctrl+u Skip to Parent class

Ctrl + F12 find an outline of a current class

ctrl+alt+h shows a possible path between the declaration of a method and its invocation

Alt+shift+up/down move the current row up or down

Ctrl+shift+enter AutoFill expressions such as If,while,for,switch wait

ALT+SHIFT+F10 indicates that the program runs automatically

Ctrl + o Rapid Replication Method

Ctrl + alt+s Open Setting Interface

mylist.for + Enter Fast Iterative collections (for example: The collection name is MyList )

Alt + enter-extract string resource. selected string (excluding double quotes)

F8 equivalent to eclipse the F6 Skip to Next step

Shift+f8 equivalent to eclipse the F8 jumping to the next breakpoint is also equivalent to eclipse the F7 jump out of functions

F7 equivalent to eclipse the F5 is to enter the code

Alt+shift+f7 This is mandatory entry code .

ctrl+shift+f9 Debug running Java class

CTRL+SHIFT+F10 run Java normally class

Command+f2 Stop running

Online rapid generation of Findviewbyid and other code

Url:

https://www.buzzingandroid.com/tools/android-layout-finder/

Common shortcut keys for Android studio

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.