Sk93 Sk93 - 4 months ago 9
C# Question

Resharper - Disable 'help' when using "prop" shortcut in C#

I'm getting quite annoyed with a feature of Resharper that I just cannot find how to disable independently.

With Resharper turned off, whenever I type

prop
in VS2015 and press
TAB
, I get the following auto-generated code:

public int MyProperty { get; set; }


and I'm then able to switch between
int
and
MyProperty
repeatedly by pressing
TAB
again.
I'm also able to use autocomplete to fill in the variable type as I type.

For example, lets say I wanted to create a property called "test" of type "string", I would do the following:


  1. type
    prop

  2. press
    TAB
    to generate the property code template

  3. type
    stri

  4. press
    TAB
    to autocomplete the variable type with
    string

  5. press
    TAB
    to move to the variable name placeholder

  6. type
    test

  7. press
    Return
    to finish



perfect.

However, with Resharper enabled, whilst steps 1,2 and 3 still work, it all goes to pot after that!

If I press TAB to try and autocomplete the variable type, the cursor simply moves over to the variable name, leaving the variable type as
stri
.

If I then press
TAB
(or even
SHIFT+TAB
) again to try and get back to it, it simply finishes the line.




To make things clearer, I've included two gifs demonstrating my problem.

This first one shows what happens with Resharper disabled:
enter image description here

Whilst this one illustrates the frustration I'm currently experiencing with Resharper enabled:
enter image description here

Answer

It looks like you have an intellisense setting conflict. Re-Enable Resharper and then change this setting:

Resharper->Options->IntelliSense->General

Change the selection from "Visual Studio" to "Resharper", hit Save and the desired behaviour should be yours.

enter image description here