Coding

XML Documentation Comment String for .NET & VBA

Generate a well-structured XML documentation comment for a function in a specified programming language (such as .NET or VBA). The comment includes sections for summary, parameters, return value, remarks, example usage, and version, with proper indentation and line wrapping.

9 steps 8 variables English

Prompt template

Run these steps in order.

01
Specify the programming language (e.g., .NET, VBA).
02
Provide the function name.
03
Write a brief summary of the function's purpose.
04
List the function parameters with names, types, and descriptions.
05
Describe the return value of the function.
06
Add any additional remarks such as preconditions, compatibility notes, or references.
07
Include an example of how to use the function.
08
Provide the function version number.
09
The XML comment should be formatted with tags indenting the content by 4 spaces and wrapping lines longer than 72 characters.

Prompt library

Use these prompts directly inside ChatGPT.

Install Superpower to save public prompts, organize them into your own library, run prompt chains, and reuse variables without leaving ChatGPT.