- https://medium.com/@uiuxwithdiptanshu/vs-code-ricing-customizing-vs-code-at-the-next-level-6a516910dcb6
- Type: tutorial
- Source: Medium · Diptanshu Mahish · Aug 2024
TL;DR
“Rice” VSCode by exploiting that it is an Electron web app: a theme and icon pack, a large settings.json and a custom CSS file give it a minimal, personal UI.
Summary
Because VS Code is built on Electron, its interface can be restyled with CSS (and JavaScript if needed). The tutorial picks the React Theme and Material Icon Theme, pastes a long user settings JSON that removes visual noise, and loads a CSS file that restyles the command palette, tabs, title bar and welcome watermark with the Geist Mono font. A palette command applies the CSS, and DevTools reveal class names for further tweaks.
Key takeaways
- Start with theme and icons: React Theme plus Material Icon Theme.
- Edit user settings (JSON) via the command palette: Prettier formatting on save, hidden minimap, status bar and breadcrumbs, side bar on the right, wide line height,
Geist Mono, JetBrains Mono, Fira Codefonts and ligatures. - Style with CSS: restyle
.quick-input-widget(command palette),.tab,.monaco-list-row, title bar and the home watermark with!importantoverrides. - Apply the CSS with a command-palette action; dismiss the warning that VS Code shows after modification.
- Iterate by opening Developer Tools, selecting an element and targeting its class in your CSS.
- No JavaScript changes are needed for the look shown.
Tools and concepts
| Item | Role in the page |
|---|---|
| VSCode | Editor being customised (Electron) |
| Tools | Themes and fonts used |
| Windows | The author’s target platform |
When to use
- When you want a personalised VS Code UI beyond themes.
- When you need the CSS selectors for the palette, tabs and title bar.
- When looking for a sensible starter
settings.json.
Caveats
- Modifying VS Code’s own CSS shows a “corrupt installation” style warning and may need reapplying after editor updates; the extension used to inject the CSS is shown only in screenshots.