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
Highlights
Refactoring Methods
Custom Tools
Options
This context action helps you to move a string
literal to a resource file by the refactoring method "Move String(s) to Resource".
This context action replaces the current string
literal by a typed access to a resource.
This context action replaces the empty string
literal by the System.String.Empty
usage.
This context action replaced by the System.Environment.NewLine
usage are string
literals: "\r"
, "\n"
and "\r\n"
.
This context action converts the current verbatim string
to a regular string
.
This context action converts the current regular string
to a verbatim string
.
This context action helps to create a string
literal from the current selection.
This context action marks a parameter of the constructor, method or property as (non) localizable.
This context action replaces a literal by constant declaration.
This context action adds if
statement for test index
value.
Context action result.
This context action adds if
statement for test index
value.
Context action result.
This context action adds if
statement for test key
value.
Context action result.
This context action adds if
statement for test index
value.
Context action result.
All localizable string
literals are highlighted.
All localizable string
literals that exists in resources are highlighted.
Shows error if your code contains invalid resource identifiers.
Suggests to replace unsafe resource accessor by more safety accessor.
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:
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.
Move cursor to the resource wrapper usage and call "Rename "(F2) to start refactoring and type a new name.
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 calling String.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.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.