ChatGPT Add Comments ([Ctrl + Alt + Shift + A] or [Cmd + Opt + Shift + A])
ChatGPT Find Bugs (Ctrl + Alt + Shift + B or Cmd + Opt + Shift + B)
ChatGPT Find Complexity (Ctrl + Alt + Shift + C or Cmd + Opt + Shift + C)
ChatGPT Optimize (Ctrl + Alt + Shift + O or Cmd + Opt + Shift + O)
Accept or ignore the suggestions (for ChatGPT Optimize and ChatGPT Add Comments)
or just see the suggestions in the output (for ChatGPT Find Bugs and
ChatGPT Find Complexity).
If the Marketplace extension is not working please try it out locally by cloning
the Github repository. Run the
extension using the following commands:
Run npm install in the terminal.
Run F5 in the workspace.
Follow the above instructions from point 2.
Each run of an extension command generates a prompt to ChatGPT. Because of this
each run generates a different output/suggestion. Some suggestions may even be
Sometimes ChatGPT does not generate output in the expected format for the code
suggestion commands. The prompt asks ChatGPT to write the output as Markdown
block code but sometimes it fails to do so.
The prompt is fixed, it cannot be changed by the user.
For long selections the waiting time for a response is very long (> 20s). This
is because of the time it takes ChatGPT to generate a response.
Extra generated file for comment and optimization suggestions
When running the commands ChatGPT Add Comments and ChatGPT Optimize an
extra (unnecessary) file is generated instead of just generating the diff
editor. This is because we could not find another way to format the generated
response. If the file is closed within Visual Studio Code, it is not deleted.
It only gets deleted if one of the provided buttons is pressed (Accept suggestions
or Ignore suggestions).
This section contains notes from major releases.
Initial release of ChatGPT Analyzer extension. Provides four major features: