Android stuido Common shortcut keys

Source: Internet
Author: User

Android stuido Common shortcut keys
  • Ctrl + Z: Undo

  • Ctrl + G: Anchor row

  • Ctrl +/: single-line comment

  • Ctrl + Shift + Z: Restore

  • Ctrl + J: quickly generate code

  • Ctrl + H: Show class structure diagram

  • Ctrl + P: Method parameter hints

  • Ctrl + Shift + F10: Run

  • Ctrl + Shift +/: Multiline comment

  • Ctrl + Alt + L: Formatting code

  • Ctrl + Shift + C: Copy path

  • Ctrl + +/-: Expand/Collapse Code

  • ALT +←/→: Toggle Code View

  • Ctrl + Shift + J: Merge into one line

  • Ctrl + Shift + f9:debug Run

  • Ctrl + U: Jump to Parent class or parent interface

  • Ctrl + Alt + J: Surround with dynamic templates

  • Ctrl + Backspace: Delete by word

  • Ctrl + Shift + Space: Code hints

  • Ctrl + Shift + U: uppercase/lowercase Toggle

  • Ctrl + Alt + Shift + V: Simple paste

  • Ctrl + W: Check code (can be pressed continuously)

  • Alt + F1: Find the directory where the files are located

  • Alt + Q: View the inheritance/implementation of the current class

  • Ctrl + F12: Displays the structure of the current file

  • Ctrl + Alt + O: Optimizing imported Classes and Packages

  • Alt +↑/↓: Quickly move a location between methods

  • Ctrl + Q: Show Javadoc (note document)

  • Alt + Shift + C: Compare recently modified code

  • Ctrl + Shift + V: Select clipboard content Insert

  • Ctrl + [/]: Jump to start/end of code block

  • Ctrl + Shift + W: deselect the word cursor

  • Ctrl + Shift + +/-: Collapse/Expand All code

  • Ctrl + Alt + F12: Explorer open folder

  • Ctrl + Shift + insert: Select Clipboard content Insert

  • Ctrl + Alt + H: Where the quick location method is called

  • F2: Quick positioning to the current class error or warning place

  • Ctrl + Shift + I: View the implementation of a method in a class

  • SHIFT + ENTER: Carriage return line (cursor navigates to next line)

  • Ctrl + Alt + I: Automatically indent selected code

  • Ctrl + Shift +. : Collapse/Expand the code in the current curly brace

  • Ctrl + Alt + Shift + C: Copy reference, must select Class name

  • Ctrl + C: Copy (the line where the cursor is located or the selection)

  • Ctrl + D: Paste (the line where the cursor is located or the selection)

  • Ctrl + X: Cut (the line where the cursor is located or what is selected)

  • Ctrl + Y: Delete (the line where the cursor is located or the selection)

  • Ctrl + Alt + Enter: Carriage return newline (cursor positioned to previous line)

  • Ctrl + Alt +←/→: Where the cursor is in the previous/next position

  • Shift + F2: Quickly navigate to the current class where the error or warning is

  • Ctrl + Shift + Backspace: Jump to the last edit location

  • Shift + ALT +↑/↓: Move the row up or down (the line where the cursor is located or the selected row)

  • Ctrl + Shift +↑/↓: Move the row up or down (the line where the cursor is located or the selected row)

  • Ctrl + Alt + Space: Property name, class name, or interface name hint (code hint)

  • Alt + Enter: Quick fix (Implement interface method, coercion type conversion, guide package)

  • Ctrl + Alt + T: Quickly add statements such as if, for, Try/catch, etc. (check the code first, and then use the combo shortcut key)

  • Alt + Insert: Generate code (construct method, Set/get method, ToString (), change = = to equals (), etc.)

  • Ctrl + Enter: Inserts a new row above the current row and moves the cursor to a new line (this function is valid at the beginning of the line)

Find common shortcut keys
    • Ctrl + N: Find class

    • Ctrl + E: recently opened files

    • Ctrl + Shift + N: Finding files

    • F4: Jump to the location where the variable is defined

    • Alt + F3: Find text in the current window

    • Ctrl + F: Find text in the current window

    • Ctrl + R: Replace text in the current window

    • F3: Check variables quickly jump to the next

    • Ctrl + B: Quickly navigate to the definition of a class or method

    • Shift + F3: Check variables quickly jump to the previous

    • Alt + F7: Querying references to the current element in the project

    • Ctrl + Shift + B: Jump to class or method implementation

    • Ctrl + Alt + B: Quickly open the class or method at the cursor

    • Ctrl + F7: Querying references to the current element in the current file

    • Ctrl + Shift + F: Find (in the selected file directory)

    • Ctrl + Shift + R: replace (in selected file directory)

    • Ctrl + Shift + Alt + N: Find a method or variable in your project

    • Ctrl + Alt + F7: Check the query for references to the current element in the project

Refactoring common shortcut keys
    • F5: Copy

    • F6: Mobile

    • Ctrl + I: Implementation method

    • Ctrl + Alt + N: inline

    • ALT + DELETE: Safe removal

    • Shift + F6: renaming (refactoring)

    • Ctrl + O: A quick way to rewrite a parent class

    • Ctrl + Alt + C: Change variables to constants

    • Ctrl + Alt + M: Extract Code Composition method

    • Ctrl + Alt + V: Quickly create local variables

    • Ctrl + Alt + Shift +t: Popup Refactoring Menu

    • Ctrl + Alt + F: Local variable becomes member variable

    • Ctrl + Alt + P: Change the variable to the parameter of the method

debugging common shortcut keys
    • F8: Single-Step debugging

    • F7: Entering method interior

    • Ctrl + F2: Stop running

    • Alt + F8: Calculating variable values

    • Alt + F9: Run to Cursor

    • Shift + F7: Intelligent Entry Method inside

    • Alt + Shift + F8: Force Bounce method

    • Ctrl + Alt + F9: Force run to Cursor

    • Alt + Shift + F7: Forced entry inside method

    • Shift + F8: Jump out of method, skip to next breakpoint

Android stuido common shortcut keys

Related Article

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.