Skip to main content

Refactor CodeGPT


The Refactor CodeGPT feature empowers you to optimize your codebase effortlessly. By selecting specific code segments, you can request CodeGPT to perform intelligent refactoring operations, enhancing code readability and efficiency.

How to Use:

  • Select CodeGPT as Provider and Model
    CodeGPT: Refactor CodeGPT

    If 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.

  • Select the Code: Highlight the code snippet
  • Right-click on the selected code then select CodeGPT: Refactor CodeGPT

Experience the power of CodeGPT's intelligent refactoring capabilities. Elevate the quality of your code with ease and precision.


Select the code, right click then select CodeGPT: Refactor CodeGPT

CodeGPT: Code Refactoring