Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Removing default (auto-detect) Tasks (launch.json and task.json) in vscode

When I try to Run Build Task for any C/C++ file, I am asked by VScode to determine which task I want to use, or configure a new task.json, via a pop-up menu. As shown in the screenshot in the below enter image description here

Now there are just too many tasks, I want to remove some of them so that the recent ones that I configured will be shown in the menu.

So, I am looking for a way to delete those ones and have my recently configured tasks as the defaults.

I am on macOS Catalina, using the latest version of VScode.

like image 430
Ali Abdul-Kareem Avatar asked Apr 16 '26 11:04

Ali Abdul-Kareem


1 Answers

Set task.autoDetect to off

https://code.visualstudio.com/docs/editor/tasks#_task-autodetection

It can also be overridden per extension

{
  "typescript.tsc.autoDetect": "off",
  "grunt.autoDetect": "off",
  "jake.autoDetect": "off",
  "gulp.autoDetect": "off",
  "npm.autoDetect": "off"
}

like so if the extension supports it.

like image 101
anki Avatar answered Apr 18 '26 14:04

anki



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!