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

RSRP-469403: Add option to make "import static" the default for types nested in static classes

$
0
0
Reporter Yacoub Massad (yacoubmassad) Yacoub Massad (yacoubmassad)
Created Apr 25, 2018 2:33:52 PM
Updated Apr 25, 2018 2:34:07 PM
Subsystem No Subsystem
Assignee Unassigned
Priority Normal
State Submitted
Type Feature
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

Resharper is helpful in importing not-yet-imported namespaces for types used in a source file.

If a type is nested inside a static class and you use Resharper to import the namespace, the namespace will be imported. However, the type itself will be ParentStaticClassName.TypeName. Although there is nothing inherently wrong with this, I prefer to use the new C# import static feature to import the ParentStaticClassName static class.

Please add a setting in Resharper that automatically imports static parent classes when Reshaper imports namespaces of types.


Viewing all articles
Browse latest Browse all 106942

Trending Articles



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