Androidstudio Use notes for "development tools-Androidstudio"

Source: Internet
Author: User

First, turn off Automatic Updates:

question: a kid's shoe that just installed Android studio might have a problem: Android studio has been downloading something for a while, wasting a lot of time, and eventually most of it will show download failures and so on, which is Android The automatic update for studio is turned on by default, and we need to turn it off manually.

Workaround: Locate the idea.properties file in the Bin folder under the installation path of Android Studio and append the code to the end of the file:

#-----------------------------------------------------------------------# stop Auto-install sdk#----------------- ------------------------------------------------------Disable.android.first.run=true

Second, some common settings:

Note: all of the following settings are set in File, Settings .

1. Set the window style for opening or reopening the project:

In System Settings, Appearance & Behavior, File, Settings , Reopen last project on start up to set whether to go directly to the last open project the next time you turn on Android studio;

In the System Settings, Appearance & Behavior, Settings, File --, select by Project Opening How the New project opens (opens in the same window/opens in a new window, etc.).

As shown in the following:

2. Set the font style:

Set the style of the font in Colors & Fonts, Settings, editor, File ---

The font style provided by default cannot be modified, and if you want to customize a font style, you need to click the Save as button to create a new font style title.

Set the font, size, and line spacing of text by setting options such as Primary font, sizes, linesSpacing , and so on.

As shown in the following:

3. Set the editor style:

The so-called editor style is the setting of attributes such as line numbers, spaces, method spacers, and so on.

Set the various editor styles in appearance, editor, Settings, File , and so on.

Set whether to display line numbers by checking or not selecting show lines numbers ;

Set whether to display the method spacer by checking or not selecting Show Methods Seperators ;

Set whether to display spaces by checking or not selecting show whitespaces and setting which spaces to display with the options below.

As shown in the following:

4. Set automatic code hint filter:

In Code completion, editor, File, Settings , select Case sensitive completion To set what casing requirements to filter code when automatic code hints are in use.

If you want the code hint to overwrite all code, it is generally set to None.

The following Autopopup in can be set for how long after the prompt content is displayed.

As shown in the following:

5, set menu bar popup menu shortcut key invalid:

Questions: In Android Studio, the shortcut keys for the menu bar pop-up menu are basically alt-combined with the first letter of the menu item, which may repeat with many shortcut keys, so we may need to set them up to invalidate them.

resolution: in appearance & Behavior, Settings, File , and appearance, tick the window options Disable mnemonics in menu option, you can invalidate the shortcut key for the popup menu.

As shown in the following:

Third, the shortcut key settings:

Note: Shortcut keys in Android Studio are set up in Keymap, Settings, File , and so on.

As shown in the following:

In the content on the right side of the graph, the input box on the left is used to search by the name of the shortcut key, and the magnifying glass icon on the right is used to find the key group of the shortcut key.

Here are some of the names of common shortcut keys and common key groups:

Shortcut key Usage Shortcut key Name Common key Groups
Code Automatic Hints Class Name Completion Alt +/
Formatting code Reformat Code Ctrl + Shift + S
Line Comment Comment with Line Comment Ctrl +/
Block annotations Comment with Block Comment Ctrl + Shift +/
Show Error Correction tips Show Intention Actions Alt + Enter
Remove unnecessary package references (import) Optimize Imports Ctrl + Shift + O
Delete a row Delete Line Ctrl + D
Copy entire row to next line Duplicate Line or Block Ctrl + Shift + V
Display parameter information for a method Parameter Info Alt + E
Auto Complement statement Complete Current Statement Alt + C
Automatically generated Generate ... Alt + Shift + Z
Wrapped in a code block Surround with ... Alt + Shift + S

Androidstudio Use notes for "development tools-Androidstudio"

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.