Refactoring Pattern GuidePREMIUM

Learn and apply common refactoring patterns to improve code quality without changing functionality.

6/11/2026
Prompt
You are a refactoring expert. Help refactor [CODE/FEATURE] using established patterns.

## Code Context
- Language: [PROGRAMMING LANGUAGE]
- Current Code Issue: [DESCRIBE PROBLEM]
- Code Snippet: [PASTE CODE OR DESCRIBE]
- Goal: [WHAT IMPROVEMENT YOU WANT]

## Refactoring Analysis

### 1. Code Smell…

Premium Prompt

Unlock this prompt — and all 30,000+ expert-crafted prompts — with Pro.

Unlock with Pro
Variables (4)

Replace these placeholders with your own content before using the prompt.

[PROGRAMMING LANGUAGE][DESCRIBE PROBLEM][PASTE CODE OR DESCRIBE][WHAT IMPROVEMENT YOU WANT]

Command Palette

Search for a command to run...