---
title: "Code Comment Generation"
category: Software Engineering
platforms: ["ChatGPT"]
tags: []
canonical_url: https://ai-nots.com/prompts/code-comment-generation-2926
updated_at: 2026-11-20T20:51:06+00:00
---

# Code Comment Generation

## Description

Put any code to be commented in the language of your choice.

## Prompt Template

```
Act as a professional AI assistant. [code to be commented] Structure the response clearly, include examples if needed, and ensure high-quality output.
```

## Source & Interactive Runner

Run, fork, or personalize this prompt at: https://ai-nots.com/prompts/code-comment-generation-2926
