Is your project a Blueprint project or c++ project? If its a blueprint project then add some code in it using Unreal Editor and it will create visual Studio project files
Menus at top of editor screen Go to File - New C++ Class.
A new window will open. There is an empty class called None. That will do. Just name and save it.
Visual Studio C++ will open automatically expecting you to write your code in it. But, you don’t have to write any code.
You will need to have visual studio community edition installed. If you try packaging a game using File - package project then you will eventually come to a point where the unreal engine will tell you it is not installed and will offer you an executable to run to install it. You need to do this and, when the install runs I would suggest you do not accept the quick install. Do the custom and tick everything. I am using midi and it would not package because I needed a full install so that I got comm component support. So, get the lot. Using the update to add extra components later did not work for me - I had to do a complete cleanout and re-install so best do a complete install first time is my advice.
It is a big download and install so have a cup of tea.