Merge Files is a Visual Studio Code extension that allows you to merge the contents of multiple files into a single new file. This extension is designed to simplify the process of combining files, making it especially useful for developers and content creators.
Features
Merge Multiple Files: Select two or more files in the Explorer and merge their contents into a new file.
Custom File Name: Specify the name of the output file during the merge process.
File Path Validation: Ensures that selected files exist and prevents overwriting existing files unintentionally.
Preserve File Context: Includes the relative path of each file in the merged output for better traceability.
Installation
Open Visual Studio Code.
Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window or pressing Ctrl+Shift+X.
Search for Merge Files.
Click Install.
Alternatively, you can install the extension manually by downloading the .vsix file from the GitHub repository and installing it via the Extensions view.
Usage
Open the Explorer view in Visual Studio Code.
Select two or more files you want to merge.
Right-click and choose Merge selected files from the context menu.
Enter the name of the new file in the input box.
The merged file will be created in the workspace with the specified name.
Requirements
Visual Studio Code version ^1.98.0 or higher.
Node.js and npm installed for development and testing.
Extension Settings
This extension does not contribute any settings.
Known Issues
Files with large content may take longer to merge.
The extension does not currently support merging binary files.
Contributing
Contributions are welcome! If you encounter any issues or have feature requests, please open an issue or submit a pull request on the GitHub repository.