How to build from the source manually by visual studio code?

My unreal project can’t be opened and it says try to build from source manually. I’ve browsed through many posts here and on google and still can’t find the solution.

I am using visual studio code so I can’t find my solution file like other visual studio files and my visual studio is not working. So how do I build from the source manually by vscode?

You likely have compilation errors though to build from VS Code do

Ctrl + Shift + B > ProjectNameEditor Platform Development Build.

Where ProjectName is the name of your project and Platform is the platform you’re targeting e.g. Win64

I’ve tried that but it says no build task found. Is it because I open the source file the wrong way? Which source file should I open? I can’t open it through Unreal engine but only through mouse right click->Open by vscode.

You need the workspace open not individual files.