This guide will help you customize your Visual Studio Code to use the GitHub Dark theme, JetBrains Mono font, and the "Custom CSS and JS Loader" extension with a custom CSS file.
- Visual Studio Code
- "Custom CSS and JS Loader" extension installed
- "GitHub Theme" theme
- Download the JetBrains Mono font from the official website.
- Install the font on your system.
- Open Visual Studio Code.
- Go to
File > Preferences > Settings
or pressCtrl+,
. - Search for "Font Family" and set it to
'JetBrains Mono', Consolas, 'Courier New', monospace
.
Or edit the Settings JSON file:
{
"editor.fontFamily": "JetBrains Mono, Consolas, 'Courier New', monospace",
"editor.fontSize": 13,
"editor.fontLigatures": true
}
- Open Visual Studio Code.
- Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window or by pressing
Ctrl+Shift+X
. - Search for "Custom CSS and JS Loader" and install it.
- Create a CSS file with the following content and save it as
custom-vscode.css
in your preferred location: - Add Custom CSS to Settings
Add the following to your settings.json
:
"vscode_custom_css.imports": [
// Absolute file paths for your css/js files
// For Mac or Linux
// "file:///Users/your-user-name/custom-vscode.css",
// "file:///Users/your-user-name/custom-vscode-script.js"
// For Windows
// "file:///Drive:/path-of-custom-css/custom-vscode.css",
// "file:///Drive:/path-of-custom-js/custom-vscode-script.js"
],
- Open the Command Palette by pressing
Ctrl+Shift+P
. - Type and select
Custom CSS and JS: Enable
. - Restart Visual Studio Code.
Note
After making any changes to your custom CSS or JS files, you need to reload them in Visual Studio Code:
- Open the Command Palette by pressing
Ctrl+Shift+P
. - Type and select
Reload Custom CSS and JS
. - Restart Visual Studio Code to apply the changes.