Unreal Engine 4.26 Vscode errors

It is not a permanent solution. Whenever you refresh project solution from the editor or add new classes those replaced lines are overwritten again.