To internationalize applications, often it requires seperating resources from code which involves externalizing localizable strings into resource files (.resx). This Visual Studio Extension tool helps developers to externalize strings into resx files in the project. Basically, this tool shows closest matched strings as you type a string. This tool will allow to reuse of existing strings and helps to keep consistency between strings. Also, this tool has a spell checking feature. Supported language: C# and VB Usage: 1. Select the project > select "Index String". This will index all strings found in .resx files in the project 2. In code editor, press Alt + L or select the string in code editor and press Alt + L, This will pop up a window to type a string. As you type a string with a space at the end, closest matched strings found in the project will be displayed. The closest matched strings will be displayed at the top. If you find the string in the list, then select the string with arrow key or mouse, then click Enter. This will replace the typed string with Key + "." + Value (if designer.cs exists) or Value (if designer.cs does exist). The text box has a spell checking feature so misspelled words will be underlined in red. 3. Add a new string to .resx If the string you typed doesn't exist in the project, then you need to add the string to .resx. If the text box is focused, Press Enter in the text box, if the string is slected in the list, then click Esc and press Enter. This will pop up another window to add the string to .resx. Select the file you want to add the string to and provide a key, then press Enter. This will add the key and string into the selected .resx file.
|