Installation Guide
Follow these steps to install and activate the Custom CSS and JS extension in Visual Studio Code.
Step 1: Install the Extension
Install the extension directly from the Visual Studio Code Marketplace.
- Open the Extensions view by clicking the icon in the Activity Bar on the side of the window or by pressing
Ctrl+Shift+X. - Search for
Custom CSS and JS Loader. - Click the Install button for the extension published by
be5invis.
Step 2: Configure Your CSS/JS Files
You need to tell the extension which files to load by editing your settings.json file.
- Open your user settings by pressing
Ctrl+Shift+Pto open the Command Palette and typingPreferences: Open User Settings (JSON). - Add the
vscode_custom_css.importsproperty, which is an array of URLs pointing to your CSS or JS files.
{
"vscode_custom_css.imports": [
"file:///path/to/your/custom.css",
"file:///path/to/your/custom.js"
]
}
Important: The paths must be valid URLs, not plain file paths. For detailed instructions on formatting URLs and using variables, see the Configuration page.
Step 3: Enable Customizations
Once configured, you must run the enable command from the Command Palette.
- Press
Ctrl+Shift+Pto open the Command Palette. - Type
Enable Custom CSS and JSand press Enter.
Administrator Privileges Required
On Windows, you must run VS Code as an administrator before executing this command. On macOS and Linux, you may need to adjust file permissions. See the Troubleshooting guide for details.
Step 4: Restart VS Code
After successfully enabling the extension, a prompt will appear asking you to restart VS Code. Click the Restart button to apply your changes. Your custom CSS and JS should now be active.