Skip to content

mesopelagique/VSThemeConverter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VSThemeConverter

language language-top code-size release build license discord

Convert Visual Studio Code theme to 4D theme.

v19 https://blog.4d.com/code-editor-multiple-themes-your-choice/

How to

Open the database on macOS and select the themes you want to convert

Screenshot

Then the converted themes will be put in the default 4d theme folder automatically. Just go to 4D setting to select the wanted one.

Customize behaviours

Fix missing keys

Not all are converted correctly so you could edit convert code

The mapping of vs code keys and 4d keys are defined in file mapping.json

Force a font

By default it take the font used by your current theme

You could edit default font name by editing DefaultTheme method to defined your fontName and fontSize

$themeObject.fontSize:=18
$themeObject.fontName:="Fira Code"

Limitations

  • color with alpha (RGBA) : alpha component is removed
  • some vs code theme have comments inside JSON, not all are removed #1

Other components

mesopelagique