Text代码审查与改进建议
提示词主题封面

Text

代码审查与改进建议

要求模型从可读性、性能、最佳实践和边界处理等方面改进选中的代码,并给出改进版本及说明。

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.

How to use

选中一段代码后,将其交给模型,让模型提供优化实现并逐项解释修改原因。

Details

Type
Text
Source
can-acar
License
CC0-1.0

Report this content