Coding Font Pack
English | 简体中文
A curated, high-quality programming font pack tailored for Visual Studio Code.
No system-level font installation required on the target machine. Once installed, enjoy premium monospaced coding typography with rich programming ligatures and clean CJK (Chinese, Japanese, Korean) glyphs directly within your VS Code editor and integrated terminal.
✨ Features
- 🚀 Zero System-Level Installation: No administrative privileges required. Does not pollute
C:\Windows\Fonts or /Library/Fonts.
- 🎯 Rich Ligature Support: Modern programming ligatures (
=>, ===, !==, ->, etc.) work out of the box.
- 🀄 Harmonious Latin & CJK Pairing: Seamless fallback between optimized monospaced code fonts and clean sans-serif Chinese characters.
- 🛡️ No Corrupt Installation Warnings: Automatically syncs checksums (
product.json) to prevent [Unsupported] title-bar warnings.
- 🔄 One-Click Clean Restore: Built-in restore command cleans up fonts and reverts editor settings back to their original state.
- ⚡ Dual-Engine Architecture: Choose between User-Space Loading (persistent across VS Code updates) and Sandbox CSS Injection.
📦 Bundled Font Families
| Font Family |
Style / Weight |
Best For |
| Coding Font Mono |
Regular (400) / Italic |
Code editor, integrated terminal, syntax italic |
| Coding Font Sans |
Light (300) / Medium (500) / Bold (700) |
Code comments, Markdown preview, UI labels |
🚀 Getting Started
1. Install Extension
Install from the VS Code Marketplace, or install via terminal:
code --install-extension coding-font-pack-1.0.3.vsix
Alternatively, open the Extensions view (Ctrl+Shift+X / Cmd+Shift+X), click ... in the top right, and select Install from VSIX....
2. Enable Font Pack
Open the Command Palette (Ctrl+Shift+P / Cmd+Shift+P), then run:
Coding Font: Enable Font Pack (Select Mode)
Select your preferred loading mode:
- Mode B: Current User-Space Load (Recommended)
- Advantage: Zero admin rights required, persists across VS Code updates, does not modify core VS Code files.
- Mode A: VS Code Internal Sandbox Injection
- Advantage: Completely isolated inside VS Code; zero trace on OS font directories.
⌨️ Commands
| Command |
Description |
Coding Font: Enable Font Pack (Select Mode) |
Open interactive menu to choose between Mode A and Mode B |
Coding Font: Mode B - Current User-Space Load (Recommended, Update-Safe) |
Activate Mode B directly (zero admin rights, update-safe) |
Coding Font: Mode A - VS Code Sandbox Injection (Isolated) |
Activate Mode A directly (isolated within VS Code) |
Coding Font: Disable and Restore Default Settings |
Clean up all fonts and revert settings across both modes |
Coding Font: Apply Font Settings to Editor & Terminal |
Quickly apply 'Coding Font Mono', 'Coding Font Sans' to settings |
⚙️ Configuration
Customize options in your VS Code settings.json:
{
// Display language: 'auto' (follow VS Code UI), 'zh-cn' (Chinese), 'en' (English)
"codingFont.displayLanguage": "auto",
// Preferred loading mode: 'prompt' (interactive), 'modeB' (User-space), 'modeA' (Sandbox)
"codingFont.preferredMode": "prompt",
// Automatically configure editor.fontFamily & ligatures on enable
"codingFont.autoConfigureSettings": true,
// Custom editor font family
"codingFont.editorFontFamily": "'Coding Font Mono', 'Coding Font Sans', monospace",
// Custom terminal font family
"codingFont.terminalFontFamily": "'Coding Font Mono', monospace",
// Enable font ligatures
"codingFont.enableLigatures": true
}
💡 Architecture & Technical Principles
Mode B (User-Space Font Mount):
- macOS:
~/Library/Fonts/
- Windows:
%LOCALAPPDATA%\Microsoft\Windows\Fonts + HKCU registry entries
- Linux:
~/.local/share/fonts/coding-font/ + fc-cache -f
- Mechanism: Utilizes operating system user-level font directories. Requires standard user permissions without administrator passwords, remaining immune to VS Code version updates.
Mode A (Chromium Sandbox Injection):
- Mechanism: Deploys font assets directly into VS Code's internal media folder and injects standard
@font-face rules into workbench.desktop.main.css. Checksums in product.json are automatically recalculated to keep installations clean.
📄 License
MIT