Search code examples
node.jscloud9-ide

How to remove user settings in Cloud9?


I'm playing with C9's SDK a little, trying to write a simple plugin. according to Settings and Preferences as well as settings, one can store settings in the user context using something like

settings.set("user/my-plugin/@someKey", 100);

no problem with that. the problem is that apparently there's no obvious way to remove a setting. In a desperate try, I tried to find the path for the file in which user settings are stored and remove the settings manually, according to the code in settings.js, they should be in ~/.c9/user.settings, but no such file exists. I also never defined userConfigPath in package.json. so can I remove a user setting? how?


Solution

  • set it to undefined to remove settings.set("user/my-plugin/@someKey", undefined); Or use cloud9>open your user settings menu item.

    ~/.c9/user.settings is used only in standalone version, on c9.io user settings are stored in a database outside of user vm.