History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSPL-101
Type: New Feature New Feature
Status: Submitted Submitted
Priority: Normal Normal
Assignee: Alexander Nesterenko
Reporter: Henning Krause
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
ReSharper Plugins

Introduce Constant on every string literal

Created: 21 Mar 08 17:02   Updated: 25 Sep 08 12:38
Component/s: SafeDevelop - RGreatEx
Fix Version/s: None
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 1.12


 Description  « Hide
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.



 All   Comments   Work Log   Change History      Sort Order:
Mike Eshva - 02 Jul 08 14:21
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 - 02 Jul 08 14:23
ReSharper version is 4.0.819.19 (the final one).

Alexander Nesterenko - 02 Jul 08 14:58
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 - 25 Sep 08 12:38
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.