Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Remove Test DataNew to Visual Studio Code? Get it now.
Remove Test Data

Remove Test Data

MPTT

|
9 installs
| (0) | Free
Removes Test data from files at the point of staging
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Examples

Set your data

Demo

Stage changes

Demo

Why

I always mess up by forgetting to comment out test data from my api's before I commit. So here is my solution.

What it does

This extension will automaticaly comment out anything for you when you stage your files.

How it works

Simple!

Add // Start Test on top of your test data and add // End Test at the end.

Done!

Now when you try to stage your files, anything between those two lines will be commented out.

Notes

Please do note currently this will only work for php files.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft