Monokai Night C Switcher
A VS Code extension that automatically applies Dark+ (VS2026-style) syntax colors when working in C, C++, or C# files, while keeping the Monokai Night UI everywhere else — sidebar, tabs, statusbar, terminal, all untouched.
How it works
The extension listens for active editor changes. When you switch to a .c, .cpp, or .cs file, it injects editor.tokenColorCustomizations and editor.semanticTokenColorCustomizations into your global settings, overriding the syntax token colors with Dark+ equivalents. When you switch away, it clears them and Monokai Night resumes as normal.
No theme switching, no window reloads — just instant token color overrides.
Features
- Automatic switching based on file type — no manual steps
- Monokai Night UI colors preserved at all times
- Dark+ token colors for C/C++/C# — keywords, types, functions, variables, interfaces, and more
- Semantic highlighting support (requires the C# extension for full interface/type resolution)
- Works with Settings Sync once published
Requirements
Semantic highlighting
For accurate interface coloring in C#, make sure semantic highlighting is enabled in your settings:
"editor.semanticHighlighting.enabled": true
Without this, the C# language server won't provide token types for interfaces and they'll fall back to textMate scope coloring.
Development
npm install
npm run compile
Press F5 to launch the Extension Development Host.
To package:
vsce package
Project structure
src/
extension.ts # activation and editor change listener
tokenOverrides.ts # Dark+ textMate and semantic token color definitions
themes/
monokai-night.json # bundled Monokai Night theme
This extension was vibe coded with Claude by Anthropic.