Can't create C++ Basic Code in Unreal Engine

When I attempt to create a C++ Basic Code project in Unreal Engine without using starter content, it gives me this error:

An error occurred while trying to generate project files.

Running D:/Program Files (x86)/Epic Games/Paragon/UE_4.19/Engine/Binaries/DotNET/UnrealBuildTool.exe -projectfiles -project=“D:/Users/Jordan/Desktop/Coding/Udemy C++ Course/Unreal Engine/Unreal Projects/MyProject/MyProject.uproject” -game -rocket -progress
Discovering modules, targets and source code for project…
WARNING: Exception while generating include data for UE4Editor: Windows SDK v8.1 must be installed in order to build this target.
Binding IntelliSense data… 0%@progress ‘Binding IntelliSense data…’ 50%
WARNING: Exception while generating include data for MyProjectEditor: Windows SDK v8.1 must be installed in order to build this target.
Binding IntelliSense data… 50%@progress ‘Binding IntelliSense data…’ 100%
ERROR: UnrealBuildTool Exception: Windows SDK v8.1 must be installed in order to build this target.

Now, I have tried to uninstall Unreal Engine and SDK and reinstall, it didn’t work. I have attempted to install SDK v8.1 but it doesn’t work for me, it just tells me to find the installer and install it but when I do that it gives me the same message telling me to install it.

Looks like you just need to install the proper VS files: Visual Studio 2022 Community Edition – Download Latest Free Version

Yeah that was the issue. I couldn’t finish the installation process because my C drive was full and according to my friend, I have to install it on all drives to use VS. Anyway, I did that but I have to make it to where Unreal Engine uses VS 2017, he said that my version requires 2017 version. I went in my folder and located where it is launching from and I selecting open with the 2017 version but it still is giving me the error.