How do i make Unreal Engine use less RAM

Im using Unreal Engine + C++ and the unreal Engine alone with an empty scene is using 5GB while VS Code is using 500MB and i want Unreal to use 3GB is there any easy option to optimise Unreal Engine through project settings and editor settings