How to register a command to open preferencesUI->extension->myCustomsettings directly

How to register a command to open preferencesUI->extension->myCustomsettings directly

Hi @connor,

there already is a command similar to what you’re looking for implemented here:

You would probably simply inject the PreferencesContribution in your command contribution and then call setSearchTerm using the name of your preference. Alternatively, you can also scroll to the preference by using this code (there’s no real API support for this yet):