How to set up your own active prompt code for Android Studio

Source: Internet
Author: User

With eclipse time, you can set whether you are setting input no matter what letter you can cue code in Android studio can also

Set up. and is simpler than eclipse setup.

Assuming, of course, that you think the code is self-prompting will reduce your code level. You can also not set, in writing code

Process, if you forget for a moment, you will be able to use code prompt shortcut keys.

What are the shortcut keys for Android Studio code hints? Read this article:

Code hints for "Android Studio shortcuts"

Next, how to set the code to be proactive.

The content of the picture is much more, I directly by the region divided into 6 block area:


Zone 1 : This option is about how to make a match when prompted, that is, the search for the prompt content according to what conditions.

All : Choosing this means that you want to match all the characters you enter. A fully matched character is displayed in the cue list, for example, in fact, the exact search:


None: choose the words. It means to make a fuzzy match, I'll go straight. As you can see, the picture is clear:


First letter: The match is based on the initials, but there is still a bug in it. The matching result is similar to all and less than all.

This personal feeling is that Android studio may not be doing well.

If you do not want to be so troublesome, then do not care about these three items, directly select all, anyway this piece is a hint of the way to match, not caring.

Zone 2 : This area is actually related to the code hint shortcut, meaning if I don't set the popup to pop up my own active prompt box. When you enter the content. At this point you press the code prompt shortcut key. If there is only one item that matches the hint, do it yourself.

Zone 3 : This is a collation of your own active code hint list. There are two ways of sorting. Lexical and relevance, the PI in the lower right corner of your point can be ordered in the order of selection. Don't worry about it, I don't think it's very useful.

Zone 4 : This option is a very important option, meaning that it is the core of this article whether or not to pop up the code itself to fill in the Prompt box. Set the code on its own initiative hint just to put this tick on just fine. The second option: Insert selected...ect. This option means that you have selected an item in the prompt list and then passed the SPACEBAR. or the dot (.) key can be directly complement (in fact, the other keys when the carriage return. After the press. Just fill in the code you selected)

Zone 5 : This is the value of whether or not you pop up the document about the completion of your selection, and speak plainly. is a description of the complement code that you selected, such as the description of the number of references. A description of the complement Code feature. Just I ticked and didn't come out, do not know is not my operation problem, but also is expected to be Android studio bug.

Since the use of as to date, it has been found that very many options are ineffective.

Zone 6 : This area is the definition of some display of the method name or the reference return value in the popup box, but this personal feeling is also a bug, as the election effect does not select a sample. No matter.

Copyright notice: This article blog original article. Blogs, without consent, may not be reproduced.

How to set up your own active prompt code 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.