aspnetcore icon indicating copy to clipboard operation
aspnetcore copied to clipboard

Razor syntax highlighting/intellisense not working

Open CanYouProgram opened this issue 8 years ago • 6 comments

Currently I need to copy my code to C# files in order to gain intellisense and syntax highlighting. Is this not currently supported in Blazor?

CanYouProgram avatar May 02 '18 22:05 CanYouProgram

Did you update the VSIX?

dlr1 avatar May 03 '18 00:05 dlr1

the blazor extension? Yes. I get a grey bar.

CanYouProgram avatar May 03 '18 01:05 CanYouProgram

Sorry this isn't working for you, could you provide a little more information?

  • Is this visual studio?
  • Did you have a working configuration before 0.3 and it no longer works? (or are you trying the tools for the first time?)
  • Screenshot?
  • Project file?

rynowak avatar May 03 '18 06:05 rynowak

I had a similar issue here with a brand new install of the Visual Studio pre-release in a test Windows 10 Pro build 1803 VM. I installed it to have a look at Blazor (I am very impressed!) and I was not getting syntax highlighting/intellisense either for Blazor code. I didn't pay much attention figuring it was likely a known issue.

Today, I had another look and everything seems to be ok, so I guess the VM just needed to be restarted.

godrunner avatar May 04 '18 20:05 godrunner

So I have solved my issue, Although I had installed BlazorExtension-2.vsix through the downloadable file, I needed to go into my Nuget packages and install the extension to the project.

CanYouProgram avatar May 05 '18 03:05 CanYouProgram

Glad you solved it.

SteveSandersonMS avatar May 22 '18 10:05 SteveSandersonMS