2.6 KiB
2.6 KiB
Installation and Usage Guide
How to Install This Extension
Option 1: Package and Install Locally
-
Package the extension:
npm install -g vsce vsce packageThis creates a
.vsixfile. -
Install the VSIX file:
- Open VS Code
- Press
Ctrl+Shift+P(orCmd+Shift+Pon Mac) - Type "Extensions: Install from VSIX"
- Select the generated
.vsixfile
Option 2: Development Mode
- Open this project in VS Code
- Press F5 to launch a new VS Code window with the extension loaded
- Open your RESX project in the new window to test the extension
How to Use
- Open a workspace containing .resx files
- Edit any .resx file and save it
- Watch the status bar for regeneration progress
- Check the Designer.cs file to see it was updated automatically
Commands Available
RESX Designer: Regenerate Designer.cs- Manually regenerate a Designer.cs fileRESX Designer: Show Output- View extension logsRESX Designer: Reload Configuration- Restart the extension with new settings
Configuration
Go to VS Code Settings and search for "resx" to configure:
- Enable/disable auto-regeneration
- Show/hide notifications
- Adjust debounce delay
- Set custom ResGen.exe paths
- Configure watch patterns
Publishing to Marketplace
To publish this extension to the VS Code Marketplace:
- Create a publisher account at https://marketplace.visualstudio.com/
- Update package.json with your publisher name
- Get a Personal Access Token from Azure DevOps
- Publish:
vsce publish
Transferring to Other Machines
Method 1: Share the VSIX File
- Package:
vsce package - Share the
.vsixfile - Install on other machines using "Extensions: Install from VSIX"
Method 2: Copy Extension Files
- Copy this entire project folder
- On the target machine:
npm install npm run compile - Press F5 to test, or package with
vsce package
Method 3: Publish to Private Registry
- Publish to a private VS Code extension registry
- Install on other machines via the registry
Troubleshooting
Extension Not Activating
- Check that VS Code version is 1.101.0 or higher
- Look for errors in the Developer Console (Help → Toggle Developer Tools)
ResGen Not Found
- Install .NET SDK from https://dotnet.microsoft.com/download
- Or set custom path in extension settings
Files Not Regenerating
- Check the Output panel (View → Output → RESX Designer Auto-Generator)
- Verify the .resx file syntax is valid
- Try the manual regenerate command