Install the C/C++ plugin for VSCode.
Change Unreal preferences to use VSCode.
In your Unreal project, go to File -> Generate Visual Studio Code Project
.
Change the defines
array in .vscode/c_cpp_properties.json
to something more like this:
"defines": [
"IS_PROGRAM=0",
"UE_EDITOR=1",