tasks.json (in VS Code)

Share

What is tasks.json in VS Code?

tasks.json is a configuration file containing JSON code used by VS Code that describes "tasks" like build tasks and test tasks that VS Code can run. For example, if you define a default build task for VS Code, you can run it with the keyboard shortcut Ctrl+Shift+B.

Where is the tasks.json file?

The tasks.json file is saved in .vscode/tasks.json in your workspace folder.

The explorer sidebar of VS Code showing a folder .vscode and in it tasks.json.
Where the tasks.json file is located in VS Code.

It's generated automatically when you create a task via VS Code's GUI, so if you find this file without having manually created it, it's because VS Code created it for you.

Note: if you're using Linux Mint, Nemo doesn't display dotfiles by default, so you may not be able to find the .vscode folder in your workspace when you open the workspace folder in Nemo instead of in VS Code.

Examples of tasks.json

Written by Noel Santos.

About the Author

I'm a self-taught Brazilian programmer graduated in IT from a FATEC. In a world of increasingly complex and essential computers, I decided to use my technical expertise in hardware, desktop applications, and web technologies to create an informative resource to make PC's easier to understand.

View Comments