Code Monkey home page Code Monkey logo

generatedocumentationcomments's Introduction

GenerateDocumentationComments

A Visual Studio extension for generating C# documentation comments

At this time, boilerplate summary documentation comments are added to public, protected, and internal class declarations when the Tools->Invoke GenerateDocumentationCommentsInEditor menu item is selected. Summary documentation is also added to public, protected, and internal class constructors.

I blog about this extension. See the following posts for information about this extension:

  1. I Was Doing It All Wrong, And How I Changed To Doing It Right! defines an initial set of user stories and a set of 9 unit tests for adding summary documentation comments for class declarations.
  2. Creating A Documentation Comment Generator For C#: High-Level Design Decisions discusses various ways of triggering the generation of boilerplate documentation comments, and why I chose to create this as a Visual Studio extension.
  3. Creating A Documentation Comment Generator For C#: Setting Up The Framework looks at creating a Visual Studio extension with a menu item that will generate documentation comments for the active document (the document in the active editor window). It shows how to retrieve the source code in the active document, at a high level how to modify the source code to add documentation comments, and finally, how to write the modified source code back to the active document.
  4. Creating A Documentation Comment Generator For C#: DocumentCommentsRewriter Class discusses how each syntax node is processed for documentation comment generation, and how that translates into the structure of the class that generates that output.
  5. Creating A Documentation Comment Generator For C#: Unit Testing begins the discussion of testing of the documentation comments generator by looking at the four levels of testing and then discussing unit testing in some detail.
  6. Creating A Documentation Comment Generator For C#: Integration, System, And Acceptance Testing discusses integration, system, and acceptance testing that I will perform.

Future posts will be used to extend the discussion.

Requirements

  1. Visual Studio 2017, with at a minimum, the following workloads:
    • .Net desktop development
    • Visual Studio extension development
  2. .Net Compiler Platform SDK extension
  3. DGML editor if you want to activate the View Directed Syntax Graph menu item in the Syntax Visualizer. See the Syntax Visualizer section of the Tools For Viewing And Creating Roslyn Syntax Trees post.

generatedocumentationcomments's People

Contributors

jimorc avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.