2025-04-13-Umfeld-in-Visual-Studio-Code

to run an Umfeld application as a CMake project in Visual Studio Code ( VS Code ), follow these steps:

install prerequisites

open your project folder

open the root folder of your cmake project ( the one containing the CMakeLists.txt ) in VS Code ( e.g ./umfeld-examples/Basics/minimal ).

configure the project

after opening the folder:

  • press CMD+SHIFT+P ( or CTRL+SHIFT+P on linux and windows )
  • type cmake: configure and run the command ( you can let the CMake decide which compiler to use or pick one of you choice )

this will configure your project and create a build folder ( default is build ).

build the project

  • press CMD+SHIFT+P
  • type cmake: build and run the command

your code will be compiled.

run your executable

after building, you can:

  • press CMD+SHIFT+P
  • type cmake: run ( or use cmake: debug to launch with debugger )

alternatively, find the output binary in your build/ folder and run it manually in a terminal.