referenceclean READMESalesforce Reference Cleaner for VS Code This VS Code extension simplifies the process of removing specific metadata references from Salesforce Profiles and Permission Sets. It is particularly useful for Salesforce developers and administrators who need to clean up profiles and permission sets by removing outdated or unused references without manually editing XML files. Features Remove References: Automatically detects and removes specified references from Salesforce Profiles and Permission Sets. Batch Processing: Supports processing multiple files at once. Backup Creation: Optionally creates backup copies of original files before modifying them. User-Friendly Interface: Provides a clean and intuitive interface for selecting references and confirming deletions. Installation To install the Salesforce Reference Cleaner, follow these steps: Open Visual Studio Code. Go to the Extensions view by clicking on the square icon on the sidebar or pressing Ctrl+Shift+X. Search for Salesforce Reference Cleaner. Click on Install. Alternatively, you can install the extension via the command palette: Open the command palette with Ctrl+Shift+P. Type ext install followed by the extension identifier (e.g., yourpublisher.salesforce-reference-cleaner). Usage To use the extension, follow these steps: Open the folder containing your Salesforce metadata in VS Code. Right-click on a Profile or Permission Set file, or select multiple files in the Explorer. Choose Remove References from the context menu. In the UI that appears, select the references you want to remove. Confirm your choices, and let the extension handle the removal and backup. Configuration Options This extension can be configured in your workspace or user settings. The following options are available: salesforceReferenceCleaner.backupEnabled: Set to true to enable backup before modifications. Default is false. salesforceReferenceCleaner.backupFolder: Specify the folder path to save backups. Support For support, feature requests, or bug reporting, please visit the GitHub repository and submit an issue. Contributing Contributions are welcome! Please read the CONTRIBUTING.md file for guidelines on how to submit pull requests. License This extension is licensed under the MIT License. |