Skip to main content
Prompts Improve the following code

general · TEXT

Improve the following code

Improve the following code ``` ${selectedText} ``` Please suggest improvements for: 1. Code readability and maintainability 2. Performance optimization 3. Best practices and patter…

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.

USAGE

Copy the prompt above and paste it into your AI of choice — Claude, ChatGPT, Gemini, or anywhere else you're working. Replace any placeholder sections with your own context, then ask for the output.

MORE FOR GENERAL