2025-03-04VSCode安装Continue配置DeepSeek

2025-03-04-VSCode安装CONTINUE配置DeepSeek

自从Cursor和WindSurf收费了之后,国内的AI代码辅助开发工具在进度上还是有点落后,在经历了一系列的工具使用和选择后,最后还是选择了相对主流的[VSCode]+[CONTINUE],选择原因:[CONTINUE]可以使用2025年初-口碑最好的DeepSeek,可以在只消耗自己充值DeeSeek的前提下,不用为工具付费!

2025-03-04VSCode安装Continue配置DeepSeek_第1张图片


1-工具使用

为[VSCode]安装[CONTINUE]并配置[DeepSeek]的API-KEY

  • 1)VSCode的插件市场直接搜索[CONTINUE]即可
  • 2)DeepSeek官方的API-KEY地址去充值和注册:https://platform.deepseek.com/api_keys
  • 3)为[VSCode]安装[CONTINUE]并配置[DeepSeek]的API-KEY,配置文件如下:

中间在网上找了一个参考教程:待补充地址

2025-03-04VSCode安装Continue配置DeepSeek_第2张图片

{
  "completionOptions": {
      "BaseCompletionOptions": {
          "temperature": 0,
          "maxTokens": 256
      }
  },
  "models": [
      {
          "title": "DeepSeek",
          "model": "deepseek-chat",
          "contextLength": 128000,
          "apiKey": "替换为DeepSeek的API-KEY",
          "provider": "openai",
          "apiBase": "https://api.deepseek.com/beta"
      },
      {
          "title": "DeepSeek Coder",
          "model": "deepseek-coder",
          "contextLength": 128000,
          "provider": "deepseek",
          "apiKey": "替换为DeepSeek的API-KEY"
      }
  ],
  "tabAutocompleteModel": {
      "title": "DeepSeek",
      "model": "deepseek-chat",
      "apiKey": "替换为DeepSeek的API-KEY",
      "provider": "openai",
      "apiBase": "https://api.deepseek.com/beta"
  },
  "slashCommands": [
      {
          "name": "edit",
          "description": "Edit highlighted code"
      },
      {
          "name": "comment",
          "description": "Write comments for the highlighted code"
      },
      {
          "name": "share",
          "description": "Export the current chat session to markdown"
      },
      {
          "name": "cmd",
          "description": "Generate a shell command"
      }
  ],
  "customCommands": [
      {
          "name": "test",
          "prompt": "{{{ input }}}\n\nWrite a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don't edit any file.",
          "description": "Write unit tests for highlighted code"
      }
  ],
  "contextProviders": [
      {
          "name": "diff",
          "params": {}
      },
      {
          "name": "open",
          "params": {}
      },
      {
          "name": "terminal",
          "params": {}
      }
  ]
}

你可能感兴趣的:(AI训练,deepseek,continue,vscode)