microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
158.92k stars 27.79k forks source link

Run command on save feature #212029

Open trymeouteh opened 2 weeks ago

trymeouteh commented 2 weeks ago

The ability to run custom commands when you save specific file extensions in VSCode. Can be used to act as a "watch" feature when working with code to run bundlers when the user saves their code.

These commands that can be executed when a file is saved, can be done in the .vscode/settings.json file or in the global settings.json file. An indicator will be in the bottom tool bar which will indicate when a command is being executed and when the command has finished executing for builds that may take a few seconds.

VSCodeTriageBot commented 2 weeks ago

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

moritz-t-w commented 3 days ago

This is in fact surprisingly difficult to do yourself.