CodeSpaces Setup - Morasta/UrsaMajorFRC2025 GitHub Wiki
- Navigate to the main repo page: https://github.com/Morasta/UrsaMajorFRC2025
- Using the dropdown in the upper left, change the current branch to
devel
- Open Code --> CodeSpaces --> Click on the + icon to create a new codespace
- Follow the prompts to clone into the codespace
- Once setup is finished, in the root, create a folder named
.devcontainer
- Within the new
.devcontainer
folder, create a new file nameddevcontainer.json
- Put the following in
devcontainer.json
:-
{ "image": "mcr.microsoft.com/devcontainers/universal:2", "postCreateCommand": "cd /opt && wget 'https://github.com/wpilibsuite/vscode-wpilib/releases/download/v2025.1.1/vscode-wpilib-2025.1.1.vsix'", "features": {}, "customizations": { "vscode": { "extensions": ["/opt/vscode-wpilib-2025.1.1.vsix","vscjava.vscode-java-pack","vscjava.vscode-gradle"] } } }
-
- VSCode will ask to reload the space, click yes and wait. It will need to download many things which will take several minutes.
- Complete set up as normal
Remember to stop the codespace when finished to avoid wasting compute time!