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: