Visual Studio Taking Forever To Open

So I want to start programming with C++ instead of blueprints. I can’t seem to get visual studio to setup correctly. I followed this guide

I double checked I did all the steps. However whenever I create a C++ class these pop up and eventually after like 10 minutes visual studio will open up.

Now if this happened once at the start I might be able to deal with it but this 10 minute wait happens every single time I create a new C++ class. Does anyone know why it’s doing this?

Edit: Ok so the files are open but I’m not in a solution / project apparently?

Edit2: If you are just coming across this thread I’d recommend giving it a full read. Yes the solution below was what I ultimately did at the end but I did some other stuff before that. Also this is more of a work around since I still can’t track down the original problem.

1 Like

Hey there @LatchGameDev! When you open your project file location, do you have the sln file there? If not, can you generate one by right clicking on the uproject file and click Generate Visual Studio Project Files and you can open the sln afterwards.

So I opened up the project file and there is a .sln file already there. I deleted it anyway and generated a new one. I opened it directly via the .sln file and could see the cpp files I’ve been creating.

Visual studio prompted me to install the “Visual Studio Integration Tool” so I did that and activated the plugin in my project via Edit>Plugins.

I then made a new C++ class in the unreal editor and visual studio prompted me. Something like reload the project because of external changes. I then saw the new class I created in the project. So great! Now things are fast, however…

Unreal is still trying to open visual studio even though I’ve already started it. I also always missed this message before but at the end of the attempt it displays this briefly. After this it opens up the files without a project like in my first post.

image

Like if the Unreal Editor could just stop trying to open Visual studio I can just open it manually and it looks like everything will work fine.

Are you able to open the solution from the Unreal launched instance of VS?

1 Like

Ah yep that works! Ok so not horrible then. So from the top I’m…

Waiting for unreal to fail to open the .sln project but still launch a VS instance.
Open the .sln project via that instance as you suggested.
Then when making new classes it won’t attempt to open another instance.
So no more waiting for “Loading Visual Studio” after every new class

Thanks and I hope this thread is useful to someone in the future because I was not finding good results when I was googling earlier.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.