microsoft / microsoft/vscode-dotnettools

No classes are scaffolded

Open
#3,229 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
No language data
Stars
321
Forks
54
Avg merge
2d 19h
Merged PRs (30d)
2

Description

Describe the Issue

With the new C# DevKit, I can create a new file but it is empty. I remember there was an option to explicitly create an interface, class etc. and it would fill out namespace etc. for me.

Steps To Reproduce
  1. Create a new project
  2. Right-Click in the project
  3. Create a new .cs file
Expected Behavior

An extra menu entry, or an empty class being scaffolded like

namespace Foo;

public class Bar {}
Environment Information
  • OS: Linux
  • VSCode: 1.124.2
  • Extension version: 3.20.199

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the workflow described: create a project, right-click it, and create a new .cs file. Start by locating the C# Dev Kit command or menu entry that handles new C# files; done means the workflow offers class or interface scaffolding, or creates a file containing the expected namespace and class structure.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, vscode
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.