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

RSRP-273706: VB Intellisense prefers parameter name over local variable

$
0
0
Reporter Josh Sterling (Josh.Sterling) Josh Sterling (Josh.Sterling)
Created Jul 6, 2011 9:20:24 PM
Updated Feb 14, 2012 7:09:11 PM
Priority Critical
Type Usability Problem
Fix versions Mirabile Futurum
State Open
Assignee Sergey Coox (coox)
Subsystem Language - VB.NET
Affected versions 6.0
Fixed in build No Fixed in build
When using r# intellisense to fill out the parameter list for a function call, if a parameter matches the name of the local variable you want, intellisense's default option will select the parameter name and append := to the call.

Example:


Public Sub Foo(ByVal bar As Integer)
...
end sub

Public Sub Baz()
Dim bar As Integer = 42
Foo(b


At this point intellisense will show a list containing Bar twice.. once for the parameter name, once for the local variable. pressing tab (or any other button to use the default intellisense option) will output:


Foo(bar :=


I can't think of any scenario where i would want to use named parameters in a function call when i have a local variable of the same name.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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