Skip to content

Typing /// in top-level statements inserts a documentation comment template #59081

@PathogenDavid

Description

@PathogenDavid

Version Used: Compiler version: '4.1.0-3.22062.11 (cc0d213b)'. Language version: 10.0. (Visual Studio 17.1.0 preview 4.0)

Steps to Reproduce:

  1. Create a new console project and populate Program.cs as follows:
Console.WriteLine("Hello, World!");

Console.WriteLine("Hello, World!");
  1. Type /// in the at the end of any line

Expected Behavior:

/// is inserted with no special behavior. (Same as in normal method bodies.)

Actual Behavior:

A documentation comment template is erroneously generated:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-IDEuntriagedIssues and PRs which have not yet been triaged by a lead

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions