InLine Edit Code
The Inline Code Edit feature of CodeGPT is a powerful tool that allows you to edit and refine your code directly within your work environment. To use this feature, you must first select CodeGPT as your Provider and Model.
How to Use:
- Select CodeGPT as
Provider
andModel
CodeGPT: Inline Code Edit CodeGPTIf you lack API Key access to a provider other than CodeGPT, you can create an account and synchronize it with the extension. To learn how to do this, please refer to the following link. Keep in mind that having a CodeGPT account not only grants you access to certain OpenAI models but also provides access to CodeGPT Plus, an advanced generative AI model.
Agents
You also have the option to utilize agents from the Marketplace, as long as you select CodeGPT as your Provider
.
- Select the Code: Highlight the code snippet
- Press
cmd+shit+k (ctrl+shift+k on Windows)
or Right-click on the selected code then select CodeGPT: Inline Code Edit CodeGPT - Old and new lines will be highlighted in green and red, respectively.
- Press Tab to accept the suggestion
CodeGPT: Inline Code Edit CodeGPT