Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No syntax highlighting

I am coding .cs files in Visual Studio 2013 with an Indie license of Xamarin. In Xamarin Studio the syntax of following code gets properly highlighted

EditText username = FindViewById<EditText> (Resource.Id.Username);
EditText pass = FindViewById<EditText> (Resource.Id.Password);

But in VS it is all in white colors and with no IntelliSense as well.

I could get syntax highlighting working for .axml files, but not for Xamarin .cs files.

Other .cs files, not generated in Xamarin, work fine.

I think this is connected with following using statements

using Android.App;
using Android.Content;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
like image 602
Saphire Avatar asked Dec 26 '22 01:12

Saphire


1 Answers

You should remove all files from

%User%\AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache

folder.

And restart Visual Studio

like image 74
Denis Kornev Avatar answered Jan 24 '23 19:01

Denis Kornev