Presidio Clipboard Anonymizer
Anonymize clipboard content using Microsoft Presidio directly from VS Code.
Features
- Anonymize Clipboard: Detects PII in your clipboard and replaces it with
<ANONYMIZED>.
- Anonymize and Paste: Pastes anonymized content directly at the cursor position in any text input.
Commands
| Command |
Keybinding |
Description |
Presidio: Anonymize Clipboard |
Ctrl+Shift+Alt+A / Cmd+Shift+Alt+A |
Anonymize clipboard content and copy it back |
Presidio: Anonymize and Paste |
Ctrl+Shift+Alt+V / Cmd+Shift+Alt+V |
Paste anonymized content at cursor |
Requirements
The extension requires Presidio to be installed. It will try to use:
- The Python interpreter configured in
presidioClipboard.pythonPath (default: python3) if it has presidio-analyzer and presidio-anonymizer.
- The
presidio-anonymize command installed via pipx.
Install via pipx
pipx install /path/to/extension/python
Extension Settings
| Setting |
Default |
Description |
presidioClipboard.pythonPath |
python3 |
Path to the Python executable |
presidioClipboard.language |
en |
Language for Presidio analyzer |
Install from VSIX
npx @vscode/vsce package --no-dependencies
Then install the generated .vsix file through VS Code: Extensions → ... → Install from VSIX.
| |