Home > Mobile >  How to see the current value of a setting in VS Code
How to see the current value of a setting in VS Code

Time:11-19

In VS code how can I see the current value of a setting?

For example: I have the Code Runner extension installed. In the Feature contribution page I saw that it has a setting

code-runner.executorMap (Set the executor of each language.)

How can see the current value of this setting? Is there a way just to display this value? Or do I need to trawl through the different JSON setting files (Default/User/Workspace) to then determine its current value?

CodePudding user response:

Maybe you can use this https://code.visualstudio.com/api/references/vscode-api#WorkspaceConfiguration.

const myWorkbench = vscode.workspace.getConfiguration('myWorkbench')
const yourConfigValue = myWorkbench.get('yourConfigValue')

CodePudding user response:

Settings in VS Code can be seen in the settings editor. There's a web page describing all aspects of that, including settings for extensions.

To modify user settings, you'll use the Settings editor to review and change VS Code settings.

To open the Settings editor, use the following VS Code menu command:

  • On Windows/Linux - File > Preferences > Settings
  • On macOS - Code > Preferences > Settings

You can also open the Settings editor from the Command Palette (⇧⌘P) with Preferences: Open Settings or use the keyboard shortcut (⌘,).

  • Related