PyCharm ChatGPT integrations
5 min readMay 15, 2024
How can we use ChatGPT directly in PyCharm? Easily! Using the AskGPT plugin!
What can it do?
Basically, it’s a plugin that uses ChatGPT’s API under the hood and pastes results into the IDE. Additionally, it can attach a file or selected text to a question, which makes the question more precise. It’s located in the Generative menu that is opened on Control (⌃) + Enter (↩) (on Mac). The short key could warry from a system and settings, so just Google it for your case.
Currently, it can:
- Write any question to ChatGPT; the answer will be in your file.
- You can ask a custom question, for example, “Please, create a method that has an int as a parameter and should return a square value of it”
- Or you can send the selected code to ChatGPT and ask, “Please, could you say if the code has some issues?”
- You can also send the whole file for analysis or enhancement.