腾讯云 AI 代码助手 Tencent Cloud AI Code Assistant
腾讯云 AI 代码助手是由腾讯云自研的一款开发编程提效辅助工具,基于混元代码大模型,提供技术对话、代码补全、代码诊断和优化等能力。
The Tencent Cloud AI Code Assistant is a development tool independently developed by Tencent Cloud, based on the Hunyuan code large model. It provides capabilities such as technical dialogue, code completion, code diagnosis, and optimization.
本工具为开发者提供了针对不同 IDE 的插件,如 JetBrains 插件和 VS Code 插件。通过腾讯云 AI 代码助手,开发者可以更高效地解决实际编程问题,提高编程效率和代码质量。
This tool offers plugins for different IDEs, such as JetBrains and VS Code. With the Tencent Cloud AI Code Assistant, developers can efficiently solve practical programming problems, improving programming efficiency and code quality.
数据隐私/安全性 Data Privacy/Security
你的代码是安全且私有的财产,我们将根据隐私声明遵循负责任的做法,以确保你的代码片段不会被用于其他用户的建议回答。
Your code is a secure and private asset. We will adhere to responsible practices according to our privacy statement to ensure that your code snippets are not used for suggestions to other users.
腾讯云 AI 代码助手可以帮你做什么?
1. 代码补全
智能补全代码信息,高效完成编程工作
Intelligent code information completion to efficiently complete programming tasks.
- 支持 20 多种语法深度学习,支持注释描述的补全,变量补全,函数补全等;
- Supports deep learning for over 20 programming languages, including completion for comments, variables, functions, etc.;
- 支持单行注释生成代码、函数体内注释生成代码、多行注释生成代码;
- Supports code generation from single-line comments, comments within function bodies, and multi-line comments;
- 支持纯函数声明后实现函数、注释与函数声明后实现函数;
- Supports implementing functions after pure function declarations, as well as comments and function declarations;
- 支持函数间补全完整的新函数实现以及部分实现(生成函数签名或注释、在分支逻辑中进行补全);
- Supports completing new function implementations and partial implementations between functions (generating function signatures or comments, completing within branch logic);

2. 技术对话
人工智能技术对话,复杂问题轻松解决
AI-driven technical dialogue to easily solve complex problems.
- 技术对话集成 IDE,支持将对话代码内容一键插入编译区当中;
- Technical dialogue integrated into the IDE, allowing one-click insertion of dialogue code content into the compilation area;

- 支持模型切换,并提供Deepseek的模型使用。如何使用
- Supports model switching and provides Deepseek model usage.
3. 规范/修复错误代码
精准修复错误代码,减少漏洞不出差错
Accurate error code fixing to reduce vulnerabilities and avoid mistakes.
- 支持框选或全选编译区代码内容,进行代码规范检查与错误修复;
- Supports selecting or fully selecting code content in the compilation area for code standardization checks and error fixing;

4. 智能生成代码注释
清晰解释既有代码,快速接手历史项目
Clearly explain existing code to quickly take over historical projects.
- 根据代码具体功能与目的,快速生成高可读注释信息;
- Quickly generate highly readable comment information based on the specific functions and purposes of the code;
- 快速识别全量代码内容,自动生成解释目录,降低理解成本;
- Rapidly identify all code content and automatically generate explanatory directories to reduce understanding costs;

快捷键 Shortcuts
mac
- ⌥ + ⇧ + X 进行代码解释 (Code Explanation)
- ⌥ + ⇧ + B 进行代码修复 (Code Fix)
- ⌥ + ⇧ + M 进行代码注释 (Code Comment)
- ⌥ + ⇧ + T 进行测试单元 (Test Unit)
- ⌥ + ⇧ + R 进行代码审查 (Code Review)
- ⌘ + ⌃ + I 询问 AI 问题 (Ask AI Question)
- ⌘ + I 在代码区域打开技术对话 (Open Technical Dialogue in Code Area)
windows
- Shift + Alt + X 进行代码解释 (Code Explanation)
- Shift + Alt + Y 进行代码修复 (Code Fix)
- Shift + Alt + M 进行代码注释 (Code Comment)
- Shift + Alt + T 进行测试单元 (Test Unit)
- Shift + Alt + Q 进行代码审查 (Code Review)
- Ctrl + Windows + I 询问 AI 问题 (Ask AI Question)
- Windows + I 在代码区域打开技术对话 (Open Technical Dialogue in Code Area)
快捷指令问答
在对话输入框中,输入 / 或 @ 调用预置的快捷指令:
- /clear:清空当前会话; (Clear Current Session)
- /comments:为所选的代码添加文档注释; (Add Documentation Comments to Selected Code)
- /newNotebook:创建一个新的 Jupyter 笔记本; (Create a New Jupyter Notebook)
- /explain:解释所选代码的工作原理; (Explain How the Selected Code Works)
- /fix:针对所选代码中的问题提出修复方案; (Propose a Fix for the Issues in the Selected Code)
- /cr:所选片段评审、所选文件评审和 Diff 提交评审 (Review Selected Snippet, Selected File and Diff Submission Review)
- /tests:为所选代码生成单元测试; (Generate Unit Tests for the Selected Code)
- /nameVariable:变量命名; (Variable Naming)
- @vscode:询问 VS Code; (Ask About VS Code)
- @terminal:询问如何在终端中执行某些操作; (Ask How to Perform Certain Operations in the Terminal)
- @workspace:询问您的工作空间,将自动引用当前代码; (Ask About Your Workspace, Which Will Automatically Reference the Current Code)
快捷知识库选择 Choose Knowledge Base
在对话输入框中,输入 # 调用预置的知识库。 知识库涵盖主流的代码仓库集合:
Input # in chatbox to call pre-set knowledge bases. Knowledge bases cover mainstream code repository collections:
- TDesign: TDesign 组件 API 知识库 (TDesign Component API Knowledge Base)
- Spring Boot: Spring 开发框架 (Spring Development Framework)
- Spring AI: 基于 Spring 的 AI 应用框架 (AI Application Framework Based on Spring)
- Langchain: 基于Langchain的AI应用工具包 (AI Application Toolkit Based on Langchain)
- React: React前端开发框架 (React Frontend Development Framework)
- Vue: Vue.js前端开发框架 (Vue.js Frontend Development Framework)
使用 AI 代码助手,开启您的编程之旅吧 Use the AI Code Assistant to start your programming journey.
The Tencent Cloud AI Code Assistant is dedicated to providing developers with an efficient and intelligent programming assistance experience, helping you navigate your coding journey more smoothly. We look forward to your usage and feedback!
用户交流群 Wechat group
官方公众号 Offical Wechat blog