How do you Include/Exclude files from Build in VS

I use the ‘Include/Exclude’ commands in Visual Studio a lot for educational purposes, but these commands don’t work in UE4 projects, the files just mysteriously vanish and using ‘Show All Files’ does not reveal them.
How do you Include and Exclude files from a build in a UE4 project in Visual Studio? Or do you have to just drag them out of the folder in File Explorer?
Here is someone else who had same problem: https://answers.unrealengine.com/questions/579387/view.html