Auto-Prompt for XML in eclipse in Android Development

Source: Internet
Author: User

Recently, due to the company's project, modifying the XML file in the android source code is quite comfortable in the company's eclipse development environment. Different types of XML files, it intelligently prompts you to enter valid XML elements. For example, layout, resource, color, string, and other files. Back home, eclipse and Android sdks are all newly built, and some XML files (such as preference, layout, and authenticator) are created. Because I am not familiar with some files, for example, for preference files, If you want eclipse to intelligently prompt us about the legal elements that appear in preference, the editor will not respond. I checked the cause on the Internet and found that most of them are automatic prompts for common XML files. Of course, this is also important. Let's just say:

Window ---> preferences -----> General -------> keys, find the content assist and then the following two values:

Binding: your custom shortcut key (usually Alt +)

When: Select editing in structured text editors

As a result, you find that the editor still cannot automatically prompt the elements that should be in preference. By chance, you may find that opening XML in the following ways has an unexpected effect:

After that, an automatic prompt is displayed for the legal elements of such files in XML:

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.