Corrado's Blog 2.0

Online thoughts of a technology funatic

Add “intellisense” to Xamarin .axml files

When you manually edit .axml files inside Visual Studio 2013 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. image
  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. image
  7. Of course, this is not the same experience we have in XAML, but better than nothing.
  8. After adding the schema, the first time you add a new Android layout Visual Studio asks you to trust a new file, just select Trust and everything will work as usual in future.
  9. Enjoy!

14 Responses to “Add “intellisense” to Xamarin .axml files”

  1. Hello,

    You need to be more clear, because the main steps in your article don´t help me to have that you are trying to show.
    For example:

    * select Visual Studio’s xml menu -> Where?
    * and then Schemas… -> Where?

    I selected android-layout-xml.xsd file. -> and?

    * Click Ok to confirm and dismiss the dialog. -> Which dialog?

    Comment by Sara Silva — 11/07/2014 @ 16:29

  2. With Android layout editor open, switch to Source view so that you can see the xml, while in this view, look at Visual Studio menus, there’s one named “xml”, click it, select “Schemas” and in the dialog click the “Add” button, browse to the file and select it, then confirm.
    That’s all.

    Comment by corcav — 11/07/2014 @ 16:38

  3. Now I got it! One image in the article could helped :)


    Comment by Sara Silva — 11/07/2014 @ 16:54

  4. Done… ;-)

    Comment by corcav — 11/07/2014 @ 16:58

  5. Good! excellent tip =D

    Comment by Rogério Rodrigues — 14/07/2014 @ 19:46

  6. Thank you, will help my developers working on Android(.axml) files. Now we have projects using .XAML using new Xamarin.Forms… Do you know if is there any schema for it?


    Comment by Gutemberg — 19/07/2014 @ 00:27

  7. Unfortunately no, i use Xamarin studio for XAML editing, it has intellisense support (though not at the same level as VS)

    Comment by corcav — 04/09/2014 @ 08:55

  8. You just made me more productive. Thank you.

    Comment by Josh — 10/09/2014 @ 22:40

  9. You’re welcome!

    Comment by corcav — 11/09/2014 @ 12:55

  10. Thank you very much!!!

    Comment by José Alejandro — 15/11/2014 @ 04:52

  11. Thanks, that was really helpful! I felt a bit crippled when starting to work with axml at first, now I’ve got a crutch ;0)

    Comment by WebMinder — 09/12/2014 @ 08:28

  12. Thank you very much you really save me

    Comment by Emmanuel — 01/04/2015 @ 20:40

  13. wonderful. thanks alot

    Comment by Morteza — 23/09/2015 @ 16:16

  14. Thank you, that work for me (y)

    Comment by ferney — 24/09/2015 @ 02:20

RSS feed for comments on this post. TrackBack URL

Leave a Response