Opening VS Code settings window from extension with specific search query

后端 未结 2 1451
小鲜肉
小鲜肉 2021-01-13 16:34

I am writing a VS Code extension where I want to open the settings window programmatically from my extension. I want the window to already have the search filled out to only

2条回答
  •  旧巷少年郎
    2021-01-13 16:46

    You can now pass an argument to the search, e.g.

    vscode.commands.executeCommand( 'workbench.action.openSettings', 'editor.formatOnSaveTimeout' );
    

    or

    vscode.commands.executeCommand( 'workbench.action.openSettings', '' );
    

提交回复
热议问题