Put this repo to ~/.config/VSCodium/User/.
Extensions are managed via VSIX Manager. Any changes to entries should be written to vsix.extensions array in a settings.json file, then VSIX Manager: Synchronize extensions command should be run in VSCodium.
When clean-installing VSCodium on your system:
- Install VSIX Manager extension from default marketplace of VSCodium (Open VSIX Registry).
- (for ArchLinux-based distros) Install vscodium-bin-marketplace package from AUR, which allows access to Visual Studio Code Marketplace from VSCodium. Though VSIX Manager allows equal access to all extensions from any defined marketplaces, repos, etc., MS Marketplace on VSCodium works more reliable than its web service.
- Check wether all needed extensions are defined in
vsix.extensionsarray insettings.jsonfile. - Run
VSIX Manager: Synchronize extensionscommand in VSCodium to sync your extensions.
Here are a few tips for Unity development with VSCodium.
Do not set VSCodium as your default editor directly, otherwise you lose Unity Editor's ability to regenerate project files. On the contrary, create symlink named code to your VSCodium executable by running this in your terminal:
sudo ln -s $(which codium) /usr/local/bin/codeThen choose /usr/local/bin/code as your editor of choice in the Preferences -> External tools -> External Script Editor.
The easy way to open your project in VSCodium from Unity is by Assets -> Open C# Project.
Sometimes you got your project files corrupted somehow or you don't get them after cloning Unity project repo. To fix that follow these steps:
- Using your terminal create symlink named
codeto your VSCodium executable (codium) by running this:Do this to trick Unity Editor into thinking you are using an officially supported distribution of VSCode.sudo ln -s $(which codium) /usr/local/bin/code - Inside Unity Editor go to
Preferences -> External tools. ForExternal Script Editorchoose your newly created symlink/usr/local/bin/codeusing internal explorer. SectionGenerate .csproj filesshould appear now. - Ensure you have checked
Embedded packagesandLocal packagesinside sectionGenerate .csproj files. - Press
Regenerate project filesbutton.
Make sure you have your dotnet-sdk package of optimal supported version (LTS or latest) installed systemwide. Here is pacman dotnet-sdk package for reference.
Because of the licensing terms, default VSCode extensions for development on C# / Unity can't be used anymore. But there are ways to continue development with telemetry-free VSCodium. My extensions of choice are these:
- full C# support, including Unity debugger, through DotRush;
- useful Unity code snippets with Unity Code Snippets extension.
Below are list of steps to perform before starting development:
- Install DotRush extension (already defined in VSIX Manager).
- Install Unity Code Snippets extension (already defined in VSIX Manager).
- Make sure VSCodium is set as your default script editor.
- Check your project files for consistency.
- Inside VSCodium run command
DotRush: Pick Project or Solution filesand choose desired*.sln(or*.slnx) file.
DotRush extension provides Unity debugger functionality through integrated Mono Debugger. Works out of the box.
Quick reminders on Unity debugging:
- Make sure the opened folder in VSCodium is the root one of your Unity project (contains
Assets/directory and others). - Create
launch.jsonfile (e.g. by using functionality of Debug sidebarcreate launch.json file) if you are not satisfied with defaul Unity debugger configuration provided insettings.json. - Ensure Unity Editor is in Play Mode.
Besides DotRush extension, there are a few worth checking for general .NET development:
- C# - popular extension on Open VSIX with solid C# support.
- C# Dev Tools - promising extension featuring full C# support.
In case you need to setup some custom tasks to run for you project, create file in .vscode directory named tasks.json and define them there as you like.
- Clone destination becomes
~/.config/Code/User/. - Consider changing paths in the
.../User/settings.jsonand probably other files. - To develop with Unity, packages like .NET Install Tool, C#, C# Dev Kit, Unity are more than enough to begin.