Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>ChatGPTNew to Visual Studio Code? Get it now.
ChatGPT

ChatGPT

zhang-renyang

|
155,534 installs
| (48) | Free
Multi-language free AI assistant supporting GPT-4,支持GPT-4的多语言免费AI助手
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ChatGPT (English)

  • This is a VSCode extension that supports OpenAI's GPT-4, GPT-3.5 models.
  • It allows configuration of apiKey, model, temperature, and maxTokens in the plugin settings.
  • It supports both Chinese and English languages.
  • It comes with a built-in free API Key, with no need for registration, no login, and no payment required for use.

Commands:

  • ChatGPT: Update APIKey (It will provide you with a prompt to enter a new API Key and will validate the remaining balance and validity of the API Key you currently input.)
  • ChatGPT: Validate APIKey (Validate the remaining balance and validity of the current API Key)
  • ChatGPT: Set language (will set the language for you)
  • ChatGPT: Ask a question (will provide you with a prompt to ask a question)
  • ChatGPT: Please add a test for this code for me (will generate test code based on file/text selection)
  • ChatGPT: Why is there a bug in this code? (will analyze your code and highlight any logical/syntax errors)
  • ChatGPT: Please help me explain the code? (will explain the code for you)
  • ChatGPT: Please refactor this code and tell me what did you change? (will refactor the code for you)

All content can be accessed from the context menu by right-clicking anywhere in the editor.

How to Use

Get API Keys

  • To obtain an API key from OpenAI, you need to register an account on the OpenAI website first. Once registered, you can log in to your account and find the API Keys section in the settings page at https://beta.openai.com/account/api-keys. You can generate new API keys here or view existing ones.
  • Ctrl+Shift+P is a common shortcut in Visual Studio Code used to open the command palette. The command palette is a pop-up window that is used to access various commands in Visual Studio Code. If you want to update the APIKey, you can enter the command ChatGPT: Update API Key and enter the new APIKey.

ChatGPT(中文)

  • 这是一个支持OpenAI's GPT-4, GPT-3.5模型的vscode插件
  • 可以在插件配置中配置apiKey、model、temperature 和 maxTokens
  • 支持中文和英文两种语言
  • 内置免费APIKey,无需注册,无需登录,无需付费,即可使用

命令:

  • ChatGPT: 更新APIKey (将为您提供一个提示,让您输入新的APIKey,并验证你当前输入的apikey余额和有效期)
  • ChatGPT: 验证APIKey(将为你验证当前输入的apikey余额和有效期)
  • ChatGPT: 设置语言 (将为你设置语言)
  • ChatGPT: 发起提问(将为您提供一个提示,让您提出问题)
  • ChatGPT: 请为我这段代码添加测试(将根据文件/文本选择生成测试代码)
  • ChatGPT: 为什么这段代码出现了BUG?(将分析您的代码并突出显示任何逻辑/语法错误)
  • ChatGPT: 请帮我解释一下代码?
  • ChatGPT: 请重构这段代码并告诉我你改动了哪里?

右键单击编辑器中的任何位置均可从上下文菜单中访问所有内容

使用方法

获取API keys

  • 要获取 OpenAI 的 API 密钥,您需要先在 OpenAI 网站上注册账号。注册完成后,您可以登录到您的账户并在https://beta.openai.com/account/api-keys设置页面中找到API 密钥部分。您可以在这里生成新的 API 密钥,或者查看已有的密钥
  • Ctrl+Shift+P 是 Visual Studio Code 中常用的快捷键,用于打开命令面板。命令面板是一个弹出窗口,用于访问 Visual Studio Code 中的各种命令,如果想要更新APIKey的可以输入命令ChatGPT: 更新APIKey,输入新的APIKey即可

交流方式

欢迎加入QQ交流群参与讨论

①群【已满 794147724】

点击链接加入群聊【ChatGPT①】:

②群【未满 724138520】

点击链接加入群聊【ChatGPT②】

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft