RGreatEx - The ReSharper Great Extension






3.68/5 (24 votes)
The easiest way to localize projects for .NET developers
Introduction
RGreatEx
makes it extremely easy for anyone to quickly implement localization into new or existing .NET applications.
Moreover, this plugin creates safer code for accessing resources.
Supported Languages
- C#
- Visual Basic .NET
- ASP.NET
Context Actions
- Move string to resource
- Use resource instead of string
- Use
System.String.Empty
instead of""
- Use
System.Environment.NewLine
instead of"\r\n"
- Convert
@""
to""
- Convert
""
to@""
- Surround with
""
- Mark as (non) localizable
- Introduce constant
- Check array index value
- Check collection or list index value
- Check dictionary key value
- Check
String
orStringBuilder
index value
Highlights
- String could be moved to resource
- Use resource instead of string literal
- Cannot resolve resource
- Use more safety resource accessor
Refactoring Methods
- Move string to resource
- Move string(s) from File(s)
- Move string(s) from Folder(s)
- Move string(s) from Project
- Rename Resource Key
Custom Tools
Options
Move String to Resource
This context action helps you to move a string
literal to a resource file by the refactoring method "Move String(s) to Resource".
Use Resource Instead of String
This context action replaces the current string
literal by a typed access to a resource.
Use System.String.Empty instead of ""
This context action replaces the empty string
literal by the System.String.Empty
usage.
Use System.Environment.NewLine instead of "\r\n"
This context action replaced by the System.Environment.NewLine
usage are string
literals: "\r"
, "\n"
and "\r\n"
.
Convert @"" to ""
This context action converts the current verbatim string
to a regular string
.
Convert "" to @""
This context action converts the current regular string
to a verbatim string
.
Surround with ""
This context action helps to create a string
literal from the current selection.
Mark as (Non) Localizable
This context action marks a parameter of the constructor, method or property as (non) localizable.
Introduce Constant
This context action replaces a literal by constant declaration.
Check Array Index Value
This context action adds if
statement for test index
value.
Context action result.
Check Collection or List Index Value
This context action adds if
statement for test index
value.
Context action result.
Check dictionary key value
This context action adds if
statement for test key
value.
Context action result.
Check String or StringBuilder Index Value
This context action adds if
statement for test index
value.
Context action result.
String Could be Moved to Resource
All localizable string
literals are highlighted.
Use Resource Instead of String Literal
All localizable string
literals that exists in resources are highlighted.
Cannot Resolve Resource
Shows error if your code contains invalid resource identifiers.
Use More Safety Resource Accessor
Suggests to replace unsafe resource accessor by more safety accessor.
Move String to Resource
Use context action Move string to resource or the action "Move"(F6) for start refactoring.
Choose resource file and key for the selected string
.
Select same string
s for removing.
All selected string
s will be replaced by typed access.
You can undo changes:
Move String(s) from File(s), Folder(s) or Project
Select File(s), Folder(s) or Project in "Solution Explorer" and call "Refactor This"(Ctrl+Shift+R) to start refactoring.
Choose string
s from selected project for refactoring.
Choose resource file and key(s) for the selected string
(s).
You can undo changes.
Rename Resource
Move cursor to the resource wrapper usage and call "Rename "(F2) to start refactoring and type a new name.
SafeResx - Strongly Typed Resource Generators
Now you can generate safer code for your resources.
Features
- Add a comment for the resource line by using
comment
XML tag. - Generated class has
public
modifier, which allows you to create shared resources between assemblies. - For formatting,
string
generates typed methods for callingString.Format
.
Use one of the following custom tools to get safer code:
SharedSafeResx
- Generates shared resource wrapper, which allows you to use resources in referenced assemblies.PrivateSafeResx
- Use this generator to create private project resources.