Skip to content

Top 50 Codex Prompts for VS Code

A practical prompt library for AI-assisted software development

Preview

Tags

  • Codex
  • VS Code
  • Prompt Engineering
  • AI Coding

Keywords

codex prompts, ai coding, refactor, testing, security, architecture


1. Understanding a Project

Understanding a Project

Useful when you open a new or unfamiliar repository.


2. Understanding Code

Understanding Code

Best used with a specific file or function selected / open.


3. Refactoring

Refactoring

Always add “preserve existing behaviour” when you want safe changes.


4. Code Quality

Code Quality

Great for quick health checks before a pull request.


5. Bug Hunting

Bug Hunting

Use after you already have a failing test or a reported issue.


6. Performance

Performance

Combine with profiling data when possible.


7. Testing

Testing

Works especially well when the source file is already open.


8. Documentation

Documentation

Keep the tone consistent with the rest of the project.


9. Security

Security

Run these periodically, not only at the end of a feature.


10. Architecture

Architecture

Most valuable when you are about to start a larger change.


Bonus Prompts

Bonus Prompts


Best Practices

Best Practices


Using @References

Using @References


Great Prompt Template

Great Prompt Template