Skip to content
| Marketplace
Sign in
Visual Studio Code>SCM Providers>Deepseek Commit MessageNew to Visual Studio Code? Get it now.
Deepseek Commit Message

Deepseek Commit Message

alonia

|
4 installs
| (0) | Free
使用 DeepSeek 根据当前工作区的 git 变更自动生成符合 Conventional Commits 规范的 commit message,摆脱对 Copilot 的依赖。
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Deepseek Commit Message

使用 DeepSeek 根据当前工作区的 git 变更(staged / unstaged)自动生成符合 Conventional Commits 规范的 commit message, 摆脱对 Copilot 内置 commit 功能不稳定、经常失效的依赖。

预览

Deepseek Commit Message 预览

功能特性

  • 🎯 一键生成:在 SCM(源代码管理)面板点击 ✨ Generate Commit Message 按钮, 自动读取 git 变更并调用 DeepSeek 生成 commit message,填充到输入框。
  • ⚙️ 可视化配置:模型、提示词模板均可在 VSCode 设置面板中配置。
  • 🔐 安全存储:API Key 通过命令保存到系统凭据库(SecretStorage),不落盘到 settings.json。
  • 🧩 预设模板:内置英文 / 中文两套 Conventional Commits 提示词,也支持自定义。
  • 🧠 双模型:支持 pro(deepseek-v4-pro)与 flash(deepseek-v4-flash)。

快速开始

  1. 设置 API Key:Ctrl+Shift+P → DeepSeek Commit Message: Set API Key。 (API Key 可在 https://platform.deepseek.com 申请) API Key 安全保存在系统凭据库(SecretStorage)中,不写入 settings.json。
  2. (可选)选择模型:DeepSeek Commit Message: Select Model。
  3. 打开任意 git 仓库,修改文件后点击 SCM 面板的 ✨ Generate Commit Message 按钮, 或执行 DeepSeek Commit Message: Generate Commit Message。

命令

命令 说明
DeepSeek Commit Message: Set API Key 设置 DeepSeek API Key
DeepSeek Commit Message: Clear API Key 清除已保存的 API Key
DeepSeek Commit Message: Select Model 选择 pro / flash 模型
DeepSeek Commit Message: Set Prompt 选择/自定义提示词模板
DeepSeek Commit Message: Generate Commit Message 生成 commit message 并填充到 SCM 输入框

配置项

配置键 类型 默认值 说明
deepseekCommitMessage.model enum flash pro / flash
deepseekCommitMessage.promptTemplate enum conventional conventional / conventional-zh / custom
deepseekCommitMessage.prompt string "" 自定义提示词(custom 模板时生效)

API Key 不通过配置面板暴露,而是通过 Set API Key 命令安全存储于系统凭据库(SecretStorage)。

常见问题

  • 生成的 message 会自动提交吗? 不会。结果只填充到 SCM 输入框,可手动修改后再提交。
  • API Key 存在哪里? 通过 Set API Key 命令保存在系统凭据库(SecretStorage),不写入 settings.json。
  • 如何更换或清除 API Key? 执行 DeepSeek Commit Message: Clear API Key 清除后再重新设置。
  • 选了中文模板仍是英文? 请通过 Select Model 切到 pro(推理更强、约束遵循更稳),或重新点击生成一次。
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft