Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-457669: Disable code completion for generated lambda argument types

$
0
0
Reporter Dmitri Nesteruk (dnesteruk) Dmitri Nesteruk (dnesteruk)
Created Apr 7, 2016 10:16:36 PM
Updated Apr 16, 2018 5:58:02 PM
Subsystem IntelliSense (Code Completion)
Assignee Alexander Shvedov (shvedov)
Priority Major
State Submitted
Type Bug
Fix version No Fix versions
Affected versions 2016.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
R# has a nice way of generating stubs for a lambda, such as

Action<int> a = /* completion here makes */ x => ...

Where x is a suggested variable name. Unfortunately, pressing Tab on x causes code completion to fire, which is extremely annoying, especially for functions taking many arguments. This almost always corrupts the variable name: for example, pressing Tab on variable name g completes it to global::. Every letter is likely to produce an incorrect replacement of the token in the hotspot.

Can we please please please disable code completion in such generated items completely, unless invoked explicitly? The Tab character should simply takes us to the next hotspot item and not complete anything.

Thanks.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>