Common settings and shortcut keys in Android Studio (private collections, which are required for conversion from Eclipse to)

Source: Internet
Author: User

Common settings and shortcut keys in Android Studio (private collections, which are required for conversion from Eclipse to)
Common settings: 1. Tab does not need four spaces
Code Style-> Java-> Tabs and Indents-> Use tab character
Code Style-> General-> Use tab character (for example, press Tab on the Diff page of Version Control)


2. Visualized Tab and Space
Settings-> IDE Settings-> Editor-> Appearance-> Show whitespaces


3. display the number of lines of code
Settings-> IDE Settings-> Editor-> Appearance-> Show line numbers


4. Modify the font size of the Code
Settings-> IDE Settings-> Editor-> Colors & Fonts-> Font-> Save As-> change a name before changing the Font size


5. Hover the mouse over the display doc
Settings-> IDE Settings-> Editor-> Show quick doc on mouse move


6. the tabs and spaces of empty rows are automatically killed.
Settings-> IDE Settings-> Editor-> Other-> Strip trailing spaces on Save-> None





Common shortcut keys:

First change to the Eclipse shortcut key (and most of the shortcut keys will be consistent with Eclipse)

Settings-> IDE Settings-> Keymap-> Keymaps select Eclipse


1. Quickly jump out of brackets like Eclipse
Keymap-> Editor Actions-> Complete Current Statement: the default value is Ctrl + Shift + Enter; Shift + Enter. No matter where the cursor is, open a new line.


2. Code prompt list (Content Assist, Alt +/in Eclipse /)
Keymap-> Main Menu-> Code-> Completion-> Basic: The default value is Ctrl + Space.


3. Error Correction prompt list (Quick Fix, Ctrl + 1 in Eclipse)
Keymap-> Other-> Show Intention Action: The default value is Alt + Enter.


4. Fast Overried Method
Keymap-> Main menu-> Code-> Override Methods: You must set it by yourself.


5. outline in Eclipse
Keymap-> Main Menu-> Navigate-> File Structure: the default value is Ctrl + F3.


6. Next and Prev of Diff in Version Control
Keymap-> Other-> Move to the next difference: the default value is Ctrl + f7.
Keymap-> Other-> Move to the previous difference: Shift + f7 by default

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.