Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

contributes.configuration property in vs code extension during development

I am developing a VS Code extension and I wanted to use contributes.configuration in package.json to set some configuration for the extension.

I have added this object:

"configuration": {
  "title": "Extension Name",
  "properties": {
    "git.sampleProp1": {
      "type": "boolean",
      "default": false,
      "description": "Sample Prop 1"
    },
    "git.sampleProp2": {
      "type": "boolean",
      "default": false,
      "description": "Sample Prop 2"
    }
  }
}

But I am having a hard time to figure out how to test this during development. When I press F5 in vs code my Extension Development Host opens up, the extension works just fine, but I am not able to find any UI in it from which I can modify and text my extension for various configurations.

How can I do this?

like image 790
void Avatar asked Apr 08 '26 21:04

void


1 Answers

Goto Settings -> Extensions to see the configurations for your extension. You will find your extension name in the list

enter image description here

like image 126
javaDeveloper Avatar answered Apr 18 '26 12:04

javaDeveloper