Refactoring prompt
Translate Code Between Languages
Convert code from one programming language to another while preserving logic, idioms, and error handling.
Translate this {{source_language}} code to {{target_language}}. ## Source code: ```{{source_language}} {{code}} ```…
The full prompt is free with an account.
Sign up free to read itIt has 3 blanks: {{source_language}}, {{target_language}} and {{code}}. In Loopy you fill them in a form and copy the finished prompt in one click.
More refactoring prompts
See every refactoring prompt- RefactoringAdd TypeScript to Legacy JavaScriptIncrementally migrate a JavaScript codebase to TypeScript without breaking changes, starting with the most critical files.
- RefactoringOptimize Database QueriesIdentify N+1 queries, add missing indexes, rewrite slow queries, and add performance monitoring to an existing application.
- RefactoringRefactor with Zero RegressionsStructured refactoring prompt that ensures existing behavior is preserved while improving code quality.

