"explore the Android studio" shortcut keys Daquan and common settings

Source: Internet
Author: User
<span id="Label3"></p><p><p>Android Studio Begins</p></p><p><p><strong><em>Android Studio</em> is Google's recommended development tool, It is said to be very powerful, began to use slowly today, this blog post will be used to record some of the problems encountered in order to help meet similar problems in the year can be quickly resolved, less detours.</strong></p></p><p><p>New project in Android Studio represents a new workspace (similar to a workspace in eclipse), the new module represents a project, and Android studio has a larger change in shortcut keys than Eclipse. Here are some common shortcut keys, more than a few times should be able to master.</p></p><p><p>Common shortcut keys</p></p><p><p>  <strong>1.ctrl+shift+n: can open files quickly</strong></p></p><p><p>2.alt+q: you can see the declaration of the current method</p></p><p><p>3.ctrl+w: You can select a word followed by a statement followed by a Function.</p></p><p><p>4.alt+f1: you can position the element you are editing in each panel</p></p><p><p>5.ctrl+p: can display parameter information</p></p><p><p>6.ctrl+shift+insert: You can select the Clipboard contents and insert</p></p><p><p>  <strong>7.alt+insert: can generate constructor/getter/setter, etc.</strong></p></p><p><p>8.ctrl+alt+v: you can introduce Variables. For example, to assign a variable to a SQL in parentheses</p></p><p><p>  <strong>9.ctrl+alt+t: The code can be wrapped within a block, such as Try/catch</strong></p></p><p><p>  <strong>10.alt+up and alt+down– can be moved quickly between methods</strong></p></p><p><p>11.ctrl+e: a list of recently edited files can be displayed</p></p><p><p>12.shift+click: can close file</p></p><p><p>13.ctrl+[or]: you can jump to the beginning of the curly brace</p></p><p><p>14.ctrl+shift+backspace: can jump to the last edit place</p></p><p><p>15.ctrl+f12: the structure of the current file can be displayed</p></p><p><p>16.ctrl+f7: you can query the current Element's reference in the current file, and then press F3 to select</p></p><p><p>  <strong>17.ctrl+n: quickly find the class name, File.</strong></p></p><p><p>  <strong>18.ctrl+ space: Code hint, When you enter code, Press this key combination to list the matching classes, method names, member variables, and so on, the role of smart hints, as useful in editing XML files.</strong></p></p><p><p>19.ctrl+alt+space: class name or interface name hint</p></p><p><p>  <strong>20.ctrl+shift+space: auto-complete Code</strong><br>   <br>  <strong>21.ctrl+j: Automatic code (for loops, etc.)</strong></p></p><p><p>  <strong>22.ctrl+o: overriding a method of a parent class</strong></p></p><p><p>  <strong>23.ctrl+i: ways to implement interfaces</strong></p></p><p><p>  <strong>24.ctrl+d: Copy the current line to the next line</strong></p></p><p><p>25.ctrl+ down ARROW or CTRL + Up arrow: when there is an Auto-match drop-down list, This shortcut automatically closes the Drop-down list and the cursor moves to the next/previous line.</p></p><p><p>26.ctrl+shift+enter: automatic matching of the corresponding grammatical structure, such as If,do-while,try-catch Structure.</p></p><p><p>27.ctrl+f: Search</p></p><p><p>28.ctrl+shift+a: quickly find the menu in Android Studio.</p></p><p><p>29.ctrl+b: jump directly to the definition of class, method, member variable, and CTRL + the left mouse button Effect.</p></p><p><p>30.ctrl+alt+b: queries which classes implement the interface where the cursor is Located.</p></p><p><p>  <strong>31.alt+ enter: import package, auto Fix</strong></p></p><p><p>  <strong>32.ctrl+alt+l: Formatting Code</strong></p></p><p><p>33.ctrl+alt+o: Optimizing imported classes and Packages</p></p><p><p>34.ctrl+r: replacing text</p></p><p><p>35.ctrl+shift+alt+n: finding a method or variable in a class</p></p><p><p>36.alt+shift+c: Compare the recently modified code</p></p><p><p>37.shift+f6: You can rename classes, methods, and variables, and the names will be updated automatically when you use Them.</p></p><p><p>38.ctrl+/or ctrl+shift+/: comments (//or/<em>...</em> ) / )</p></p><p><p>  <strong>39.ctrl+j: Automatic Code</strong></p></p><p><p>40.ctrl+e: recently opened file</p></p><p><p>41.ctrl+h: Show class structure diagram</p></p><p><p>42.ctrl+tab: Open the interface toggle window, hold down the CTRL key, and select the appropriate window to Open.</p></p><p><p>43.ctrl+alt+f7: View the usage of a class, method, member variable throughout the Project.</p></p> <p style="font-size:12px;"><p style="font-size:12px;">Copyright Notice: This article for Bo Master original article, without Bo Master permission not Reproduced.</p></p> <p><p>"explore the Android studio" shortcut keys Daquan and common settings</p></p></span>

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.