Skip to content

Latest commit

 

History

82 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup guide

VSCodium

Put this repo to ~/.config/VSCodium/User/.

Extensions

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.

First time setup

When clean-installing VSCodium on your system:

  1. 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.
  2. Check wether all needed extensions are defined in vsix.extensions array in settings.json file.
  3. Run VSIX Manager: Synchronize extensions command in VSCodium to sync your extensions.

Unity development

Here are a few tips for Unity development with VSCodium.

Set default editor

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/code

Then choose /usr/local/bin/code as your editor of choice in the Preferences -> External tools -> External Script Editor.

Open C# project in VSCodium

The easy way to open your project in VSCodium from Unity is by Assets -> Open C# Project.

Regenerate project files

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:

  1. Using your terminal create symlink named code to your VSCodium executable (codium) by running this:
    sudo ln -s $(which codium) /usr/local/bin/code
    Do this to trick Unity Editor into thinking you are using an officially supported distribution of VSCode.
  2. Inside Unity Editor go to Preferences -> External tools. For External Script Editor choose your newly created symlink /usr/local/bin/code using internal explorer. Section Generate .csproj files should appear now.
  3. Ensure you have checked Embedded packages and Local packages inside section Generate .csproj files.
  4. Press Regenerate project files button.

dotnet-sdk package

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.

Setting up Unity development environment with VSCodium

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:

Below are list of steps to perform before starting development:

  1. Install DotRush extension (already defined in VSIX Manager).
  2. Install Unity Code Snippets extension (already defined in VSIX Manager).
  3. Make sure VSCodium is set as your default script editor.
  4. Check your project files for consistency.
  5. Inside VSCodium run command DotRush: Pick Project or Solution files and choose desired *.sln (or *.slnx) file.

Unity debugger

DotRush extension provides Unity debugger functionality through integrated Mono Debugger. Works out of the box.

Quick reminders on Unity debugging:

  1. Make sure the opened folder in VSCodium is the root one of your Unity project (contains Assets/ directory and others).
  2. Create launch.json file (e.g. by using functionality of Debug sidebar create launch.json file) if you are not satisfied with defaul Unity debugger configuration provided in settings.json.
  3. Ensure Unity Editor is in Play Mode.

.NET development

Besides DotRush extension, there are a few worth checking for general .NET development:

  1. C# - popular extension on Open VSIX with solid C# support.
  2. 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.

VSCode notes

  1. Clone destination becomes ~/.config/Code/User/.
  2. Consider changing paths in the .../User/settings.json and probably other files.
  3. To develop with Unity, packages like .NET Install Tool, C#, C# Dev Kit, Unity are more than enough to begin.

About

Configuration files for my VSCodium setup

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages