VSThemeConverter
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
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