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

RSRP-287695: VB.NET: Wrong item selected automatically

$
0
0
Reporter Denis Abramov (sparky2708) Denis Abramov (sparky2708)
Created Jan 11, 2012 2:27:05 AM
Updated Jan 11, 2012 2:27:05 AM
Priority Normal
Type Unspecified
Fix versions No Fix versions
State Submitted
Assignee Unassigned
Subsystem No subsystem
Affected versions No Affected versions
Fixed in build No Fixed in build
Suppose you have an ENUM:

Public Class ReportViewer
  Public Enum ReportType
        XML
        CSV
        TIFF
        PDF
        WEB
        WebArchive
        XLS
        RPT
    End Enum
End Class


Now let's say you are trying to call a method with the signature:
Public Function Generate(ByVal outputPath As String,
                        Optional ByVal reportType As ReportViewer.ReportType = ReportViewer.ReportType.PDF) As String
...
End Function


So you type:
SomeObject.Generate(somePath, reportType:


As soon as you typed the ":" R# makes a replacement:
SomeObject.Generate(path, ReportViewer.ReportType.CSV:


This isn't what I wanted. I wanted to type:
SomeObject.Generate(path, reportType:=ReportViewer.ReportType.PDF)


This is very annoying when it types the wrong thing.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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