2. Ways you could use ChatGPT when you code Code generation: using a task description, it will generate code for you. Comment generation: automatically generate comments for your code, saving you time and effort. Bug fixing: find and fix bugs in your code by suggesting fixes.