# C++ project does not open in Visual Studio

**URL:** <https://forums.unrealengine.com/t/c-project-does-not-open-in-visual-studio/464210>\
**Category:** C++\
**Tags:** unreal-engine, Visual-Studio, UE4, CPP, question\
**Created:** [April 28, 2020, 1:03am UTC](https://forums.unrealengine.com/t/c-project-does-not-open-in-visual-studio/464210 "2020-04-28T01:03:12Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_c8d46d6a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c8d46d6a](https://forums.unrealengine.com/u/anonymous_user_c8d46d6a)\
**Post date:** [April 28, 2020, 1:03am UTC](https://forums.unrealengine.com/t/c-project-does-not-open-in-visual-studio/464210/1 "2020-04-28T01:03:12Z")

</div>

I am following the Programming Quick Start Guide. On this step:

“This will automatically create a simple, blank project with only essential C++ code in the solution, and it will automatically open inside both the Unreal Editor and Visual Studio.”

when I create the blank project, it opens in Unreal Editor, and opens a command prompt to  
C:\Program File (x86)\Microsoft Visual Studio\2017\BuildTools\> but Visual Studio does not open.

If I close the Editor and open the existing project, it does not bring up the command prompt or Visual Studio at all.

When I go to File \> Open Visual Studio it just opens the command prompt but not Visual Studio.

Visual Studio 2017 is installed with C++ and Unreal Engine components.

---

<div class="post-metadata">

**Author:** ![Bino](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bino](https://forums.unrealengine.com/u/Bino)\
**Post date:** [May 4, 2020, 1:33pm UTC](https://forums.unrealengine.com/t/c-project-does-not-open-in-visual-studio/464210/2 "2020-05-04T13:33:22Z")

</div>

This is weird and have never seen behavior like this before. Can you open up the Visual Studio .sln file direction from your project folder?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c8d46d6a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c8d46d6a](https://forums.unrealengine.com/u/anonymous_user_c8d46d6a)\
**Post date:** [May 6, 2020, 4:39am UTC](https://forums.unrealengine.com/t/c-project-does-not-open-in-visual-studio/464210/3 "2020-05-06T04:39:13Z")

</div>

Yes, the .sln file can be opened directly in Visual Studio.

---

<div class="post-metadata">

**Author:** ![Bino](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bino](https://forums.unrealengine.com/u/Bino)\
**Post date:** [May 6, 2020, 4:44am UTC](https://forums.unrealengine.com/t/c-project-does-not-open-in-visual-studio/464210/4 "2020-05-06T04:44:34Z")

</div>

Run the project from Visual Studio after opening it? I’m a little confused by your question. Going to need a video to understand what’s going on.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c8d46d6a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c8d46d6a](https://forums.unrealengine.com/u/anonymous_user_c8d46d6a)\
**Post date:** [May 6, 2020, 5:16am UTC](https://forums.unrealengine.com/t/c-project-does-not-open-in-visual-studio/464210/5 "2020-05-06T05:16:36Z")

</div>

Try reading my original question it explains exactly what is going on. The quickstart guide claims that Visual Studio will automatically open. It doesn’t. The File menu has an option “Open in Visual Studio”. It doesn’t work.

---

<div class="post-metadata">

**Author:** ![Bino](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bino](https://forums.unrealengine.com/u/Bino)\
**Post date:** [May 6, 2020, 5:33am UTC](https://forums.unrealengine.com/t/c-project-does-not-open-in-visual-studio/464210/6 "2020-05-06T05:33:53Z")

</div>

I read it. I’ve never seen that behavior before.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c8d46d6a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c8d46d6a](https://forums.unrealengine.com/u/anonymous_user_c8d46d6a)\
**Post date:** [May 6, 2020, 5:35am UTC](https://forums.unrealengine.com/t/c-project-does-not-open-in-visual-studio/464210/7 "2020-05-06T05:35:59Z")

</div>

Also if I double click on a C++ Class it tries to open in Visual Studio but gets stuck with the same result, says ‘Loading Visual Studio’ forever in the lower right but only opens a command prompt.

 ![301326-open-cpp-class.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/4/a/54aa3825487716a10444fb4bf89c0c076ec0fc21.png)

---

<div class="post-metadata">

**Author:** ![Bino](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bino](https://forums.unrealengine.com/u/Bino)\
**Post date:** [May 6, 2020, 5:43am UTC](https://forums.unrealengine.com/t/c-project-does-not-open-in-visual-studio/464210/8 "2020-05-06T05:43:35Z")

</div>

Yup I’ve never seen this before. I tested on my project 4.25 and it opens in VS directly. I’m not sure how this feature works in the background but it’s always been a bit flakey. You can just open up Visual Studio and navigate to it. I would log this as a bug ([Unreal Engine Community](https://epicsupport.force.com/unrealengine/s/)) and move on (as long as you can make code changes, build and run). Maybe someone here knows how to fix it.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4350c18f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4350c18f](https://forums.unrealengine.com/u/anonymous_user_4350c18f)\
**Post date:** [July 26, 2020, 2:42pm UTC](https://forums.unrealengine.com/t/c-project-does-not-open-in-visual-studio/464210/9 "2020-07-26T14:42:37Z")

</div>

I have the build tools installed in 2020 and still get the same error in UE Version: 4.25.1-13594126+++UE4+Release-4.25 with the 2019 visual studio build tools version.

Ways to replicate:  
1.Install visual studio build tools  
2.Install UE  
3.Install visual studio community edition  
enjoy

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4f897fc8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4f897fc8](https://forums.unrealengine.com/u/anonymous_user_4f897fc8)\
**Post date:** [September 12, 2020, 2:43pm UTC](https://forums.unrealengine.com/t/c-project-does-not-open-in-visual-studio/464210/10 "2020-09-12T14:43:56Z")

</div>

I get this exact same behavior. Did you find a solution for this?

---

<div class="post-metadata">

**Author:** ![thedude4774](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@thedude4774](https://forums.unrealengine.com/u/thedude4774)\
**Post date:** [December 16, 2020, 7:43am UTC](https://forums.unrealengine.com/t/c-project-does-not-open-in-visual-studio/464210/11 "2020-12-16T07:43:00Z")

</div>

I had this same problem and I found the solution! You need to open up the Visual Studios Installer, go to your version of Visual Studios and choose modify, then when you select the package for Unreal C++ games development, make sure you check and install both the Unreal Engine Launcher and the Cocos. I’m guessing it’s the Unreal Engine Launcher that actually fixed it, but I added both of those and then it worked. If this doesn’t fix it, you might want to go into Editor Preferences in Unreal and make sure you have the correct version of Visual Studios selected. Hope this helps!

---

<div class="post-metadata">

**Author:** ![coderhaus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@coderhaus](https://forums.unrealengine.com/u/coderhaus)\
**Post date:** [February 3, 2021, 3:48pm UTC](https://forums.unrealengine.com/t/c-project-does-not-open-in-visual-studio/464210/12 "2021-02-03T15:48:57Z")

</div>

This can happen if you installed build tools separately from VS. If you open Visual Studio installer and see something like Visual Studio Community 2019 (2), note the parens and number after the name, there’s your issue.

I didn’t do much troubleshooting other than uninstalling build tools and VS and reinstalling VS only. There might be a way to do it without uninstalling, I didn’t have the patience to find it.

Also, as @mentions, make sure you click on Game Development with C++ and check Unreal Engine Launcher.

---

<div class="post-metadata">

**Author:** ![lokeuei](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lokeuei/32/465167_2.png) [@lokeuei](https://forums.unrealengine.com/u/lokeuei)\
**Post date:** [February 3, 2022, 1:29am UTC](https://forums.unrealengine.com/t/c-project-does-not-open-in-visual-studio/464210/13 "2022-02-03T01:29:05Z")

</div>

This is the correct solution. Remove the build tools that you’ve installed separately. Thanks @coderhaus

---

<div class="post-metadata">

**Author:** ![rosilunda](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rosilunda](https://forums.unrealengine.com/u/rosilunda)\
**Post date:** [April 19, 2022, 1:38am UTC](https://forums.unrealengine.com/t/c-project-does-not-open-in-visual-studio/464210/14 "2022-04-19T01:38:28Z")

</div>

> [@coderhaus](#):
>
> This can happen if you installed build tools separately from VS. If you open Visual Studio installer and see something like Visual Studio Community 2019 (2), note the parens and number after the name, there’s your issue.

A minor precision: in Visual Studio installer, select Modify of your VS installation and go to section ‘Game development with C++’, the option which needs to be checked is ‘Unreal Engine Installer’ - see [Setting Up Visual Studio for Unreal Engine | Unreal Engine 4.27 Documentation](https://docs.unrealengine.com/4.27/en-US/ProductionPipelines/DevelopmentSetup/VisualStudioSetup/)

---

<div class="post-metadata">

**Author:** ![vonwhite\_svo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vonwhite\_svo](https://forums.unrealengine.com/u/vonwhite_svo)\
**Post date:** [November 30, 2023, 3:51am UTC](https://forums.unrealengine.com/t/c-project-does-not-open-in-visual-studio/464210/15 "2023-11-30T03:51:35Z")

</div>

Go to Editor Preferences-\>Source Code. Then change the source Editor. note, you may have to delete the Intermediate folder

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/2/e/f2eaa935d28864c4dde5aa15e7038f461391b071.png)

---

<div class="post-metadata">

**Author:** ![Arifin](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arifin/32/1154204_2.png) [@Arifin](https://forums.unrealengine.com/u/Arifin)\
**Post date:** [November 7, 2025, 1:36am UTC](https://forums.unrealengine.com/t/c-project-does-not-open-in-visual-studio/464210/16 "2025-11-07T01:36:08Z")

</div>

I had the same issue with 5.6. I noticed i had visual studio build tools 2022 installed, i just uninstalled it and it fixed the issue.
