Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Strip .onlyNew to Visual Studio Code? Get it now.
Strip .only

Strip .only

rouanw

|
292 installs
| (0) | Free
Strip .only from your test file
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

strip-only

Ready to commit your code?

strip-only is a Visual Studio Code extension that removes exclusive tests by stripping .only from your current file. Tested with Mocha.

Run it and it will change all instances of it.only and describe.only to it and describe respectively. (It also works for mocha's TDD interface methods - suite and test.)

strip-only

Get started

Install the extension, via the UI or:

code --install-extension rouanw.strip-only

The Strip .only command will now be available in the command palette.

You can add a keyboard shortcut, in keybindings.json. For example:

[
  // ... other shortcuts
  {
      "key": "ctrl+shift+.",
      "command": "extension.stripOnly"
  }
]

Find it on the Visual Studio Marketplace

https://marketplace.visualstudio.com/items?itemName=rouanw.strip-only

Licence

MIT

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