首页 > 其他 > 详细

Get Intellisense for .axml files in Visual Studio

时间:2015-08-21 12:43:37      阅读:128      评论:0      收藏:0      [点我收藏+]

原文 Get Intellisense for .axml files in Visual Studio

So in order to get some intellisense support for .axml files, we will add the required Schema.

Let‘s follow certain steps and see where we land: 
1. Open the .axml file 
2. Select Designer in the source view. 
3. From the menu bar, select XML -> Schemas... 
4. In the XML Schemas dialog, click on Add 
5. Navigate to C:\Program Files (x86)\MSBuild\Xamarin\Android 
6. Select android-layout-xml.xsd and click on Open. 
7. Click on OK to confirm and dismiss the dialog.

------------------------------------

When you manually edit .axml files inside Visual Studio 2015 you don’t have any minimal intellisense support, and, as Visual Studio user, you know how frustrating is typing without any kind of help.

技术分享

Since editing the same file using the XML editors brings you a ‘partial’ intellisense i tried to find what was the difference and finally found how to enable it also inside Android designer source view.

  1. 1-With Designer in source view, select Visual Studio’s xml menu and then Schemas…
  2. 技术分享
  3. 2-Navigate to C:\Program Files (x86)\MSBuild\Xamarin\Android and select android-layout-xml.xsd file.
  4. 3-Click Ok to confirm and dismiss the dialog.
  5. Here’s what you now get when typing android: in source view:
  6. 技术分享

Get Intellisense for .axml files in Visual Studio

原文:http://www.cnblogs.com/lonelyxmas/p/4747221.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!