This template is created for Rimworld modders who use Visual Studio Code instead of Visual Studio IDE.
- No virtual folders. Easy to manage and edit both
xmlandcsfiles. - Lightweight. Visual Studio Code only takes up to 500 MB of storage space and is lighting fast.
- Automated. Integrated build, scripting and management tools to perform common tasks making everyday workflows faster.
- Customizable. Almost every feature can be changed, whenever it is editor UI, keybinds or folder structure.
- Download and install .NET Core SDK and .Net Framework 4.8 Developer Pack. This step can be skipped if you already have required C# packages from Visual Studio IDE.
- Install C# extension.
- Clone, pull or download this template into your Rimworld
Modsfolder.
- Linux
dotnetsetup may vary depending on how you install Rimworld and what distro is being used. Follow Microsoft's instructions to installdotnet. - Install C# extension.
- Clone, pull or download this template into your Rimworld
Modsfolder.
- By pressing
F5key VS Code will perform 2 operations: build assembly file and launch Rimworld executable. - All intermediate files are kept inside
.vscodefolder. - For XML only modders remove preLaunchTask line from
.vscode/launch.jsonfile. - Modify
.vscode/mod.csprojandAbout/About.xmlaccording to your needs.
- Follow the instructions of pardeike / Rimworld-Doorstop to create a debug server.
- Install Mono Debug extension.
- In the Debug Panel (
Ctrl+Shift+D), switch the configuration fromBuild & RuntoBuild & Debug. - Linux users additionally need to install the
monopackage.
- Launch process hanging
If the Doorstopdebug_suspendoption is enabled, theBuild & Runaction will hang because the process is waiting for a debugger handshake. To resolve this, either attach the debugger manually or use theBuild & Debugaction to automate the connection.
- Mod Generator Utility | Jellypowered / Prepare New Mod