Skip to content

Unable to create a file of a specific template in a specific folder #3075

@Netris89

Description

@Netris89

Describe the Issue

With the solution explorer before the change, you could right click or click on the add new file button on a folder in the solution explorer and it would ask you to select a template then it would create that file in the folder you chose and adjust the namespace accordingly.
This is not the case in the new version. If you right click or click on the add file button on a folder in the view, it creates a basic file and you have to create the skeleton yourself. If you want the template, you have to open the command palette and select .Net : New File. This allows you to select the right template, but, unless I'm mistaken, creates the file at the root of the directory. You then have to move it in the folder you wanted and change the namespace.

Steps To Reproduce

  1. Right click on a folder
  2. Click on New File

Expected Behavior

The file is created in the right folder with the proper namespace.

Environment Information

  • OS : Windows 11
  • VSCode Version : 1.120
  • Extension version : 3.20.195

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-templatesExperiences around the project/item templatesbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions