Help: Fix using Tab to select an autocomplete from R# adds trailing characters to end of line
Two situations:
Going to:
Resharper > Options... > Environment > IntelliSense > General
- Selecting Visual Studio
- Selecting ReSharper
In the first situation, when I highlight, for example, a method name, like highlighting 'IsFalse' in the example below:
Assert.IsFalse(myBool);
and then I type the following: 'IsNotIn', the autocomplete suggests:
IsNotInstanceOfType
Using the arrow keys, I move the highlighted option down to 'IsNotInstanceOfType' and press Tab to accept the suggestion. The line now reads as the following:
Assert.IsNotInstanceOfType(myBool);
Completing the same steps, but in situation 2, using the ReSharper IntelliSense, results in the following line:
Assert.IsNotInstanceOfType(myBool)yBool);
The more of the name you type before accepting the suggestion, the worse the trailing characters are, for example only typing 'is' and accepting the suggestion results in:
Assert.IsNotInstanceOfType(myBool));
This is obviously not ideal and has resulted in disabling the otherwise superior ReSharper IntelliSense. Any assistance fixing this issue would be appreciated.
Please sign in to leave a comment.
Which version of R#? It should be fixed in 2017.2.1:
https://youtrack.jetbrains.com/issue/RSRP-466251
https://resharper-support.jetbrains.com/hc/en-us/community/posts/115000566024-Autocomplete-tab-replace-leaves-trailing-characters
2017.2, thank you, I'm updating now. I've only just installed R# a couple of weeks ago, didn't realise there was an update already.
Looks like there were still some cases where this bug would crop up, which have been fixed in 2017.2.2:
https://blog.jetbrains.com/dotnet/2017/10/06/resharper-ultimate-2017-2-2/