简体   繁体   中英

Intellisense doesn't work for custom xml files in Xamarin

I use Xamarin in Visual Studio 2017. In Layout axml files intellisense works normal as shown in the picture.

布局axml文件

But, in the main_menu.xml file intellisense doesn't work.

自定义xml文件

Is there any solution or this feature is not intended?

If you are having any trouble getting XML IntelliSense for the AXML files in Visual Studio, please follow the steps below.

Step1: Open an (any) .Axml file

Step2: From the menu bar, select XML -> Schemas…

Step3: In the XML Schemas dialog, click on Add

Step4: Navigate to C:\\Program Files (x86)\\MSBuild\\Xamarin\\Android

Step5: Select android-layout-xml.xsd and click on Open.

Step6: Click on OK.

I hope above steps useful for you

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM