'Setting/Defining Extension Configuration (if one does not want to use VSCode's default settings/configuration) using package.json

Is it possible to set the configurations or settings of any extension using package.json file without having to go to Preferences->Settings->Extensions and making the changes in configuration for that particular extension. It would be great if this can be automated and done through package.json file.



Solution 1:[1]

I have found two solutions to the above mentioned query:

  1. The most practical and logical solution is to use "configurationDefaults contribution point" to override the default configuration of extensions set by Visual Studio Code. Please refer to configuration defaults override.
  2. The second solution is to access package.json file of that particular extension by going to .vscode folder in your home directory (this option makes permanent changes on the disk).

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Aisha Nasir