Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Razor view engine intellisense not working VS 2010

Inside VS 2010 I do not have any intellisense working. I have reinstalled everything and still nothing is coming up for intellisense???

like image 272
Cameron Avatar asked Feb 07 '11 19:02

Cameron


People also ask

How do I enable IntelliSense in Visual Studio 2010?

1) Use the Tools->Options menu command, select the Text Editor->C# settings, and then check the two circled check boxes above (Auto-list members and Parameter information). IntelliSense will then be turned on and work fine.

What is the Razor view engine in asp net?

Razor View Engine is a markup syntax which helps us to write HTML and server-side code in web pages using C# or VB.Net. It is server-side markup language however it is not at all a programming language.

How do I add Razor view?

Right-click on the Views/HelloWorld folder, and then Add > New Item. In the Add New Item - MvcMovie dialog: In the search box in the upper-right, enter view. Select Razor View - Empty.


2 Answers

If you have resharper installed then you'll need this update which should fix it.

like image 173
TWith2Sugars Avatar answered Nov 16 '22 00:11

TWith2Sugars


@Cameron - The issue is caused by Resharper not automatically "triggering" intellisense in Razor documents. You can manually invoke the intellisense using Control-Space. So @DateTime. will not give you any options, but if you do @DateTime. and then hit control-space it will bring up the intellisense for the DateTime object.

like image 21
David C Avatar answered Nov 15 '22 23:11

David C