Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VSCode.dev support #21

Open
wernight opened this issue Sep 20, 2022 · 1 comment
Open

VSCode.dev support #21

wernight opened this issue Sep 20, 2022 · 1 comment

Comments

@wernight
Copy link
Owner

wernight commented Sep 20, 2022

I didn't yet find a way to get it working, but what I got is close. However "Custom CSS and JS Loader" isn't available on vscode.dev (only VSCode desktop) and also not available on all forks. Maybe the only option right now is using a Chrome extension to inject a @import url("...");

Usage example for VSCode.dev

  1. Add extension Custom CSS and JS Loader.

  2. Add to settings.json the latest URI:

    "vscode_custom_css.imports": ["https://cdn.jsdelivr.net/gh/wernight/powerline-web-fonts..."]
    
  3. Change Setting > Terminal › "Integrated: Font Family" to something like: Iosevka, Inconsolata-g, Consolas, 'Courier New', monospace

@wernight
Copy link
Owner Author

wernight commented Sep 20, 2022

Using Tampermonkey:

// ==UserScript==
// @name         Add Powerline web font.
// @namespace    https://github.com/wernight/powerline-web-fonts
// @version      0.1
// @description  Allows using Powerline web font on this page.
// @author       Wernight
// @match        https:///vscode.dev/*
// @match        https://*.gitpod.io/*
// @grant        GM_getResourceText
// @resource     css  https://cdn.jsdelivr.net/gh/wernight/powerline-web-fonts@ba4426cb0c0b05eb6cb342c7719776a41e1f2114/PowerlineFonts.css
// ==/UserScript==

(function() {
    'use strict';

    let link = document.createElement('link');
    link.rel = 'stylesheet';
    link.type = 'text/css';
    link.textContent = GM_getResourceText('css');

    document.querySelector('head').appendChild(link);
})();

Not yet fully tested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant