A Visual Studio Code extension that automatically creates backups of files on save, with configurable options for backup directory and file exclusions.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Make Backup Files is a Visual Studio Code extension that automatically creates backups of your files every time you save them. This extension is highly configurable, allowing you to specify backup directories, exclude certain file extensions, and enable or disable the feature as needed.
Features
Automatically creates backups of files on save.
Configurable backup directory.
Ability to exclude specific file extensions from being backed up.
Works seamlessly across Linux, macOS, and Windows.
Configuration
This extension provides the following configuration options:
make-backup-files.enable
Type: boolean
Default: true
Description: Enable or disable the backup files feature.
make-backup-files.backupDirectory
Type: string
Default: "" (Defaults to ~/.backups on Linux/macOS and %USERPROFILE%\\.backups on Windows.)
Description: Specify the directory where backup files will be stored.
make-backup-files.excludeExtensions
Type: array
Default: ["log", "tmp"]
Description: Specify file extensions to exclude from backup. Example: ["log", "tmp"]
Usage
Open any file in Visual Studio Code.
Save the file (Ctrl+S or Cmd+S on macOS).
A backup of the file will be created in the configured backup directory.
License
This project is licensed under the MIT License. See the LICENSE file for details.