AeroTools
Home AI Prompts Improve the following code

Improve the following code

chatgpt • development • 14 uses
Free
What is this prompt for?

Sets the model up as a reviewing engineer: it reads the code, explains what it does, and proposes changes you can apply.

What it actually does: Improve the following code $ selectedText Please suggest improvements for, 1.

Main use cases:
  • Writing automated tests that cover the edge cases
  • Reviewing pull requests with practical suggestions
  • Generating clean, readable code
Benefits and results:
  • Clearer documentation, so the project stays maintainable
  • Faster development and higher output
  • Code that follows current security practice
Prompt length: 40 words Reading time: ~1 min Best with: Claude Sonnet (recommended for code), GPT-4o, GitHub Copilot

Prompt

Improve the following code

```
${selectedText}
```

Please suggest improvements for:
1. Code readability and maintainability
2. Performance optimization
3. Best practices and patterns
4. Error handling and edge cases

Provide the improved code along with explanations for each enhancement.

Related Prompts

AeroTools

AeroAssistant

Online AI
Hello! I am your official AeroTools AI Assistant. How can I help you use our tools today?