Switch from Resharper 5 Intellisense to Visual Studio Intellisense using a command - asp.net-mvc

Is it possible to go to Resharper -> Options -> IntelliSense -> General and switch from Resharper to Visual Studio using a command in Resharper 5?
I would like to benefit from the Razor Intellisense which comes with ASP.NET MVC 3 RC but Resharper makes it look buggy (take a look at Scott's Tweet).

I don't know if is possible to to only turn ReSharper intellisense on and off. However, you can turn all of ReSharper on and off using a keyboard shortcut. On my computer it still takes a few seconds but it may be the best solution until the bug is fixed.
In Tools -> Options -> Environment -> Keyboard bind the ReSharper_ToggleSuspended command to a keyboard shortcut.

Related

Uploading file in MVC project under Debug forces program to exit debug mode

So, I create new empty/MVC project, add simple controller and view for uploading file, lauch program under the Debug mode and trying to upload file.
After selecting file (immediately, right after chosing the file in explorer!) program exits debugging and I'm getting 404 in my browser.
When lauching project without debugging everything works good, but this is not a solution... what if I need to test uploading exactly in the Debug mode?
In ASP Core I'm getting the same issue.
I've tried different variations of code, including version of A. Freeman, published in his book "Pro ASP.Net MVC 5" - nothing works.
This is a bug of visual(I am not sure). You can fix this by change keyboard of visual studio to Visual C# 2005. You should run in Chrome, Firefox or Microsoft Edge. Others browser is not compatible.
You can find keyboard settings in Tools -> Options -> Environment -> Keyboard
Change setting to Visual C# 2005 -> Ok. Restart computer or visual studio. It will works!

Use emmet(ZenCoding) with Visual Studio for Mac (not VS Code)

I'm making an Asp.Net Core MVC application using Visual Studio for Mac.(Not VS Code)
I want to use Emmet with Razor Page(*.cshtml file.) coding, but I can not use it even by pressing the Tab key.
I feel like I was able to use it before. (It is not certain.)
Is there a setting to enable Emmet somewhere?
Visual Studio for Mac does not have support for Emmet and there is no extension available that you can install.
Visual Studio for Mac has support for code snippets. If you open the Preferences dialog, select Text Editor - Code Snippets, you should find some snippets available for Razor files, and other files.
Code snippets are available in the completion list and you need to press tab - tab to select and then expand the snippet. However this does not match all the features that Emmet supports.

Add View Context Menu in VS 2015 is Painfully Slow

In my Visual Studio 2015 MVC project, when I right-click a menu under the Views folder
and select Add -> View... the dialog is painfully slow to appear (about 60 seconds slow).
Some contextual information that might be helpful:
Visual Studio 2015 Community Edition
Running on a Parallels VM w/8GB (so it probably shouldn't be this slow)
The project I'm working in has been upgraded from MVC 3 -> 4 -> 5.
ReSharper 10.0.1
I reinstall my operate system, the problem seems resolved. But it came again when my project rewrite the router in MVC5. So I guess the problem is in MVC Router.
If you build a new project, the problem will resolve. So check you MVC project, Especially if you have override your Router in MVC5.

How to enable/disable specific ReSharper feature

How to enable/disable ReSharper(?) feature on screenshot?
Visual Studio 2013,
ReSharper 8.1
There are 2 answers to this question: the first one is WHY??? This feature allows you to Ctrl+Left Click (or by selecting Go to Definition (Ctrl+B in IDEA keyboard scheme, F12 in Visual Studio keyboard scheme), it asks you where you want to go: either to the List.cshtml view (deduced by the List() action inside your controller), or to the definition of the base.View() method, which will be decompiled automatically by ReSharper (if you have decompilation enabled in ReSharper Options).
If in any event you want turn off those features for ASP.NET MVC, you can do this in ReSharper Options by going to Code Editing → ASP.NET → MVC, and unchecking Enable ASP.NET MVC References. Please note that this will disable ReSharper's enhancement of all ASP.NET MVC elements - HtmlHelpers in ActionLinks, etc.

how to use MVC 3 intellisense for razor in Visual studio

How i can use Intellisense for Razor in Visual studio.
Simply download and install MVC3 RC1.
http://weblogs.asp.net/scottgu/archive/2010/11/09/announcing-the-asp-net-mvc-3-release-candidate.aspx
If your having problems getting it to work and you have the RC installed a long with ReSharper. You have to disable ReSharper's intellisense. Per this tweet.
If you were previously using MVC3 Beta and set a file extension association in Visual Studio between .cshtml/.vbhtml and the HTML editor (to get nice HTML colours), then you'll need to remove it before IntelliSense will work with MVC3 RC.
Not sure I udnerstand the question. Are you not seeing color highlighting and intellisense?
You have to get the MVC 3 Release Candidate that was released 9th November.
Download link:
http://go.microsoft.com/fwlink/?LinkID=191797
If you have the RC, then you may have to enable the intellisense by doing the following:
Tools > options > text editor > all languages and make sure intellisense is turned on.
It could be that you have installed a utility like Resharper that might have disabled it.
I hope this helps.

Resources