DEV Community

John Peters
John Peters

Posted on

VSCode and Visual Studio Folders

Visual Studio Code is my defacto editor for anything Typescript or Javascript.

Visual Studio is the defacto C# IDE.

A recent project required both, but Visual Studio has never just added newly created folders. This is because it requires the folder to be 'registered' with the solution.

The best way to have a folder and it's entire contents 'registered' is to...

  • Open Visual Studio code, create a new project and import what is needed.
  • I created the folder in the same Visual Studio 2019 solution folder, but it doesn't have to be there. It could be anywhere.
  • Open up file explorer to the newly created Visual Studio Code folder.
  • Drag the folder over to the solution folder in Visual Studio.

Done.

Top comments (0)