Project
ReSharper
Priority
Normal
Type
Feature
Fix versions
Mirabile Futurum
State
Submitted
Assignee
Alexander Nesterenko
Subsystem
Localization
Affected versions
No Affected versions
Fixed in build
No Fixed in build
  • Created by   Henning Krause
    3 years ago (21 Mar 2008 18:02)
  • Updated by   Alexander Nesterenko
    7 months ago (11 Jul 2011 16:56)
  • Jira: RSRP-128350
    (history, comments)
 
RSRP-128350 Introduce Constant on every string literal
4
Issue is visible to: All Users
  The issue is visible to the selected user group only
I saw on the website that RGreatEx has a "Introduce Constant" context action but I can't get it to work.

It would be great to have this action on every string literal.

And it should be possible to create a local constant or class global constant.
Comments (4)
 
History
 
Linked Issues (?)
 
TeamCity Changes (0)
 
Mike Eshva
  Mike Eshva
02 Jul 2008 15:21
3 years ago
I've got the same problem. There is no my lovely "Introduce constant" on local menu. It disapeared after I've installed ReSharper 4.0. My RGreatEx version is 1.1.15.18173. Both products are in trial mode.
Mike Eshva
  Mike Eshva
02 Jul 2008 15:23
3 years ago
ReSharper version is 4.0.819.19 (the final one).
Alexander Nesterenko
  Alexander Nesterenko
02 Jul 2008 15:58
3 years ago
In the ReSharper 4.0 "Introduce constant" is not supported, because ReSharper have same feature.
Try to use "Introduce variable" or "Introduce field" instead of "Introduce constant".
Peter Mounce
  Peter Mounce
25 Sep 2008 13:38
3 years ago
It would also be great to have "Introduce constant on common class" - I keep a sealed class "Keys" of constants that are used, and then rigourously enforce using Keys.Constant where there is the chance that the literal will be re-used, so we don't have match-up problems with out-of-sync constants.