Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

VSCode

Homepage: https://code.visualstudio.com

Maintainers: Erin Pletches and Daniel Thwaites (@Flameopathic @danth)


When theming is enabled for VSCode, Stylix will create and apply its own VSCode theme, as well as configure settings concerning fonts.

tip

The theme created is called Stylix, and if one so desires, its colors can be changed using programs.vscode.profiles.<name>.userSettings (exactly as one would customize any other VSCode theme). See the example below; the syntax is explained in the VSCode documentation.

programs.vscode.profiles.default.userSettings = {
  "workbench.colorCustomizations" = {
    "[Stylix]" = {
      "editor.wordHighlightBackground"  = "#${colors.base02}66";
      "editor.hoverHighlightBackground" = "#${colors.base02}66";
    };
  };
};

Home Manager options

stylix.targets.vscode.enable

Whether to enable theming for VSCode

Type

boolean

Default

config.stylix.autoEnable

Example

false

Source

stylix.targets.vscode.profileNames

The VSCode profile names to apply styling on.

Type

list of string

Default

[
  "default"
]

Source

NixOS options

None provided.