y2cli — VS Code Extension
Download YouTube videos and audio directly from VS Code, powered by y2cli.
Features
- Clean webview panel with video thumbnail, title, and format picker
- Download MP4 (1080p → 360p) or MP3 with one click
- Live progress bar inside VS Code
- "Download from Clipboard" command for quick use
- Configurable Python path and output directory
Requirements
Install the y2cli Python package first:
pip install y2cli
Usage
- Open Command Palette (
Ctrl+Shift+P)
- Run y2cli: Open Downloader
- Paste a YouTube URL and click Fetch
- Pick a format and click Download
Or use y2cli: Download from Clipboard URL to skip the panel entirely — it reads the URL from your clipboard and lets you pick a format via Quick Pick.
Extension Settings
| Setting |
Default |
Description |
y2cli.pythonPath |
py |
Python executable (py, python3, full path) |
y2cli.outputDir |
~/Downloads/y2cli |
Where files are saved |
y2cli.serverPort |
7272 |
Local server port |
Install from Source
git clone https://github.com/Tresorbana/y2cli-vscode
cd y2cli-vscode
# Install vsce if needed: npm install -g @vscode/vsce
vsce package
code --install-extension y2cli-1.0.0.vsix
Or press F5 in VS Code to launch the Extension Development Host directly.
License
MIT
| |