Tutorials

Replace VSCode by VSCodium

VSCode is installed by default. If you prefer to use VSCodium instead then setvscodiumtoTrueinside thevscode_coresection in the vscode-anywhere.sls file:

vscode-anywhere:
  vscode_core:
    vscodium: True

After that, you have just to run the installation script again.

Set bash or PowerShell as default shell in Windows

The git installer provides the bash binary and it can be used as the default shell. To use bash as the default shell, set the following settings in thecustomsection in the vscode-anywhere.sls file:

vscode-anywhere:
  custom:
    settings:
      terminal.integrated.shell.windows: {{ salt['grains.get']('vscode-anywhere:apps:path') | path_join('scoop', 'apps', 'git', 'current', 'bin', 'bash.exe') }}

Or you can use the default Windows PowerShell:

vscode-anywhere:
  custom:
    settings:
      terminal.integrated.shell.windows: {{ salt['environ.get']('SystemRoot') | path_join('system32', 'WindowsPowerShell', 'v1.0', 'powershell.exe')' }}

Or if powershell module is set to enabled, you can use pwsh (PowerShell core) instead:

vscode-anywhere:
  custom:
    settings:
      terminal.integrated.shell.windows: {{ salt['grains.get']('vscode-anywhere:apps:path') | path_join('scoop', 'apps', 'pwsh', 'current', 'pwsh.exe') }}

After that, you have just to run the installation script again.

Change the default theme

All following examples must be set in in the vscode-anywhere.sls file and after editing this file you have to run the installation script.

Preconfigured theme

If the vscode module is enabled, the default theme is set to One Dark Pro.

In this case, you must override the the workbench.colorTheme settings.

If you prefer to change to another dark theme like Better Solarized Dark:

vscode-anywhere:
  vscode:
    settings:
      "workbench.colorTheme": "Better Solarized Dark"

The vscode module also installs light theme: Ysgrifennwr and Better Solarized Light.

If want to change to Ysgrifennwr theme:

vscode-anywhere:
  vscode:
    settings:
      "workbench.colorTheme": "Ysgrifennwr"

Or if you prefer Better Solarized Light:

vscode-anywhere:
  vscode:
    settings:
      "workbench.colorTheme": "Better Solarized Light"

Custom theme

If the vscode module is enabled, in this case, you must configure your own theme in the vscode section to override the settings:

vscode-anywhere:
  vscode:
    settings:
      "workbench.colorTheme": "myCustomTheme"

If the vscode module is not enabled, in this case, you can configure your own theme in the custom section:

vscode-anywhere:
  custom:
    settings:
      "workbench.colorTheme": "myCustomTheme"

Change myCustomTheme by the theme to use.

For more information, please read the documentation.

Change the default icon theme

All following examples must be set in in the vscode-anywhere.sls file and after editing this file you have to run the installation script.

Preconfigured icon theme

If the vscode module is enabled, the default icon theme is set to vscode-icons.

Custom icon theme

If the vscode module is enabled, in this case, you must configure your own icon theme in the vscode section to override the settings:

vscode-anywhere:
  vscode:
    settings:
      "workbench.iconTheme": "myCustomIconTheme"

If the vscode module is not enabled, in this case, you can configure your own icon theme in the custom section:

vscode-anywhere:
  custom:
    settings:
      "workbench.iconTheme": "myCustomIconTheme"

Change myCustomIconTheme by the icon theme to use.

For more information, please read the documentation.

Last updated