talira

C# XML Documentation Comments

Type /// in VS Code to get a C# XML documentation comment stub

open sourceMITfree

A Visual Studio Code extension by Keisuke Kato that generates C# XML documentation comments: typing /// above a member writes the summary, param and returns tags for it. The comment syntax and the tags written for each kind of member can be configured. Its README says the official C# extension has generated documentation comments itself since December 2020 (with Format On Type turned on), and that since March 2023 this extension gets maintenance only, with no new features. MIT licensed.

Problems it solves

  • writing XML doc comments for every C# method by hand takes forever
  • get Visual Studio's /// doc comment shortcut in VS Code
  • document my C# public API without typing the summary and param tags myself

Features

  • generate C# XML documentation comments by typing ///
  • single-line (///) or delimited (/**) comment syntax
  • configure which tags are written for each kind of member

Alternatives

The same job

These do what C# XML Documentation Comments does.

  1. IntelliJ IDEA Keybindings IntelliJ IDEA and JetBrains keyboard shortcuts in VS Code
  2. Django extension for Visual Studio Code Beautiful syntax and scoped snippets for perfectionists with deadlines
  3. Jinja for Visual Studio Code Syntax highlighting and snippets for the Jinja template language in VS Code
  4. Better Comments Color-coded alerts, queries, TODOs and highlights in your code comments in VS Code
  5. C/C++ for Visual Studio Code Microsoft's C and C++ language support for VS Code
  6. JS JSX Snippets React, Redux and Jest snippets for JavaScript and TypeScript in VS Code

Compare C# XML Documentation Comments with the top 3