Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Start a new project in VSCode

There's a few things I'm having trouble with here that are related:

  1. I'm trying to start a new project, but it keeps defaulting to the one I have open already. I can't seem to find a way to start fresh with a new project.

  2. I can't figure out how to remove folders from the project. Say I added the wrong folder to my project and I want to remove it, how would I do this?

Thanks

like image 470
avoliva Avatar asked Apr 29 '15 22:04

avoliva


People also ask

How do you start a new project in VS Code?

If the Visual Studio development environment is already open, you can create a new project by choosing File > New > Project on the menu bar.

How do I create a new project in Visual Studio C?

Once Visual Studio is started, click 'Create a new project'. Select 'Empty Project' and click Next. Enter an appropriate project name. Click 'Create'.

How do I create a new project in VS Code Mac?

Create a new project If Visual Studio for Mac is already open with a solution loaded, you can create a new solution by going to the menu bar and choosing File > New Solution.


2 Answers

  1. File->New Window seems to do the trick
  2. The projects are filesystem based. So if it's in your folder structure it'll be shown in VSCode; I believe this is by design. The only way to remove the folder would be to do so from the FS level.
like image 160
Dave Redding Avatar answered Sep 27 '22 22:09

Dave Redding


  1. Create a new Folder
  2. Use VS Code to Open that empty folder.
  3. Open the Integrated Terminal by selecting View\Terminal
  4. In the terminal window, type dotnet new console.

This command creates a Program.cs file in your folder with a simple "Hello World" program already written, along with a C# project file named HelloWorld.csproj

like image 37
johnconger Avatar answered Sep 27 '22 22:09

johnconger