If you love the Learn with Sumit Theme for VS Code you can now enjoy the same themes in Visual Studio that make coding fun and easy.
-
Download and compile Theme Converter
-
Create an
.env
file and addTHEME_CONVERTER_PATH
in the file.THEME_CONVERTER_PATH="H:\theme-converter-for-vs\ThemeConverter\ThemeConverter\bin\Debug\net6.0\"
-
Get and store theme from VS Code
- Open VS Code.
- Install the desired color theme and switch to this theme in VS Code. Please note that this tool will not convert icon themes.
- “Ctrl + Shift + P” and run “Developer: Generate Color Theme from current settings.”
- In the generated JSON, uncomment all code. When you uncomment, please be careful about missing commas! Make sure the JSON is valid.
- Save this as a “JSON” file in
vscode-themes
folder for the conversion, using the theme's name as the file name. Please ensure that the file’s extension is .json. (The file shouldn’t be saved as a JSONC file.)
-
Run converter script
You need
node
>= 21 to run the script.npm run build
-
Open
".\Learn With Sumit Theme (Unofficial)\Learn With Sumit Theme (Unofficial).sln"
file. -
Select the project node and open the "Add existing Item" window: Use "Shift + Alt + A" or right-click on the project node, select Add > Existing Item.
Set filter to All Files (.) and select the converted .pkgdef file(s) that you want to include in this VSIX.
-
Right click on newly added
.pkgdef
file and go to properties and set the properties like below: -
Open the source.extension.vsixmanifest file, then select Assets, select New.
-
Set Type to Microsoft.VisualStudio.VsPackage, and Source to File on filesystem.
-
Select Browse and select the .pkgdef you added. Select OK.
-
Edit other fields in the vsixmanifest as desired (author, version, company, etc). Build solution and you now have a vsix in the output folder! Your new theme is most compatible with Visual Studio 2022.