Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Studio 2015 & .NET 4.6
  4. Why does Visual Studio make a new folder when I create my .cpp file?

Why does Visual Studio make a new folder when I create my .cpp file?

Scheduled Pinned Locked Moved Visual Studio 2015 & .NET 4.6
questioncsharpc++visual-studio
3 Posts 2 Posters 18 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 12941702
    wrote on last edited by
    #1

    Let's say that I make a new project called Welcome Program. Okay Visual Studio creates the project and places that in a new folder called Welcome Program. Next, I create a source code file and I call that WelcomeProgram.cpp. Now here is where I notice that instead of placing that source code file in the main Welcome Program folder that Visual Studio just created, it automatically creates another new folder inside the Welcome Program folder, and it also calls it Welcome Program. I'm wondering why Visual Studio does this? Is it better organized this way? Is there a way to tell Visual Studio not to create another folder, but rather place my source code in the main folder? I'd like to know...even though I will probably not change it.

    L 1 Reply Last reply
    0
    • U User 12941702

      Let's say that I make a new project called Welcome Program. Okay Visual Studio creates the project and places that in a new folder called Welcome Program. Next, I create a source code file and I call that WelcomeProgram.cpp. Now here is where I notice that instead of placing that source code file in the main Welcome Program folder that Visual Studio just created, it automatically creates another new folder inside the Welcome Program folder, and it also calls it Welcome Program. I'm wondering why Visual Studio does this? Is it better organized this way? Is there a way to tell Visual Studio not to create another folder, but rather place my source code in the main folder? I'd like to know...even though I will probably not change it.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      The first folder contains the files associated with the Solution, and below that are folders for each Project in the Solution.

      U 1 Reply Last reply
      0
      • L Lost User

        The first folder contains the files associated with the Solution, and below that are folders for each Project in the Solution.

        U Offline
        U Offline
        User 12941702
        wrote on last edited by
        #3

        Okay. Thank You.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups