How to override font for a specific theme? - visual-studio-code

Is there a way to set a specific font to be used for a certain VSCode theme? That is, every time I enable the theme, I want a particular font to be used for the editor, but revert to the default if I switch to any other theme.

To achieve this, you need to raeach to theme's codes where font is specifed. Changing the block with the font attritubute will change corresponding theme's font but when you change to any other theme, font would be changed accordingly as you wished.

Related

Is it possible to change the font in VARIABLES in debugger in VSCode?

How can I change the font family and font size of variables in the screenshot in VSCode?
There is a GitHub issue discussing this problem:
Allow to change the font size and font of the workbench
and someone has added a PR to resolve it:
Add settings for changing the workbench font size and font #144365
So maybe you need to wait for vscode to merge this function.
By the way, in my case,
because the font in variables use the default font of windows10 system - Consolas.
So I choose to change the default font, using Jetbrains Mono to replace Consolas, and it works.

customize color theme for a file type or a specific extension

I m looking for a way to setup a specific color theme (or alter the default color theme)
based on the type of file edited by vs code
OR
depending on the used extension
I've read HOW TO setup a color theme and alter the default color theming but I could not find HOW TO setup a specific rendering based on file type. It seems the theme apply to the whole application. More specifically what I m interested in is to use say the "Light" color theme rendering while editing drawio file (graphical file edited using a dedicated extension) and use the "Dark" theme rendering for code editing (any other file type).
The extension I use refer to appropriate color theme and finally what might a good option would be to set a given color theme based on the extention involved to edit the file but that might require to dig into the extension source code.

Make some personalizations in vscode specifically for some theme

How to make some customization in vscode settings like font size and font weight specific for some theme. For e.g -> I want to do fontsize 15 for one theme but when I change to another it's fontsize should be 12, I mean for exmple :).
The easiest way to do so is to directly change the VSCODE font-size settings by going to
File->Settings->Searching Font-size->Changing it or Ctrl+, and doing the same process
You could also go to Font switcher extension and download it and directly type F1->Font size
And lastly, I think it seems no such feature exists for changing the font size according to the theme unless and until you are able to get very specific info such as some unique id or something about the theme you are using and apply certain code to your settings.json you may be able to modify it.

What is the name of configuration to change the background of line number VScode?

How to change color of that background?
https://code.visualstudio.com/api/references/theme-color - there is a website where you can choose all setting for vscode colors.
I have found only setting to change color of (1,2,3,4,5...).
Can you help me to change a background of that part of editor?
It's called the gutter, and what you might be looking for is editorGutter.background.

How to change TinyMce default css path?

How do I change the default css path for the theme that tiny mce use?
The default path is tiny_mce/themes/your_selected_theme and as for now there is no way to set the path to any other place. Thus, you will need to place your theme there.