The .onsaverc extension for Visual Studio Code allows you to define custom actions to be triggered whenever a file is
saved within a specific directory.
Installation
To install the extension, follow these steps:
Open Visual Studio Code.
Navigate to the Extensions view by clicking on the square icon in the Sidebar or by pressing Ctrl+Shift+X.
Search for .onsaverc in the Extensions view search box.
Click Install on the .onsaverc extension.
Usage
Once the extension is installed, you can set up .onsaverc files in your project directories to define custom actions.
Creating a .onsaverc File
To define custom actions to perform after save events, create a .onsaverc file in the your visual code studio
workspace. The file should be a JSON file with the following structure: