该提示词用于将代码注释翻译为中文并保留英文,按指定的summary标签格式输出,中文在上、英文在下,便于开发者同时查看双语注释。使用时粘贴待处理的注释内容,AI会批量转换,适合代码文档本地化和开源项目注释整理。

中文版提示词

请将代码注释翻译为中文并保留英文,输出格式为:
/// <summary>
/// {{中文}}
/// <br/>{{英文}}
/// </summary>
处理内容如下:

英文版提示词

Translate the code comments into Chinese while keeping the English, using the output format:
/// <summary>
/// {{Chinese}}
/// <br/>{{English}}
/// </summary>
Content to process:

🛠️ **适用 AI 工具**:ChatGPT、Claude、Cursor、Copilot、DeepSeek、Gemini