CodeSpaces Setup - Morasta/UrsaMajorFRC2025 GitHub Wiki

  1. Navigate to the main repo page: https://github.com/Morasta/UrsaMajorFRC2025
  2. Using the dropdown in the upper left, change the current branch to devel
  3. Open Code --> CodeSpaces --> Click on the + icon to create a new codespace
  4. Follow the prompts to clone into the codespace
  5. Once setup is finished, in the root, create a folder named .devcontainer
  6. Within the new .devcontainer folder, create a new file named devcontainer.json
  7. Put the following in devcontainer.json:
    1. {
         "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"]
             }
         }
      }
      
  8. VSCode will ask to reload the space, click yes and wait. It will need to download many things which will take several minutes.
  9. Complete set up as normal

Remember to stop the codespace when finished to avoid wasting compute time!