OneClick Smart Copy
Copy any file with all its local dependencies to your clipboard in one click — perfect for pasting into AI chats or documentation.
Features
- Copy with Dependencies — right-click a JS/TS file and copy it along with every local import it uses
- Copy Folder Structure — copy a clean file tree of any folder without file contents
- Paste with Structure — recreate files from previously copied content into any folder
- Run File — right-click any
.bat, .cmd, .ps1, .sh, or .exe and run it directly in the integrated terminal
Usage
Copy File with Dependencies
- Right-click a JavaScript or TypeScript file in the Explorer
- Select Copy with Local Dependencies
- Paste into your AI chat, docs, or anywhere else
Copy Folder Structure
- Right-click any folder in the Explorer
- Select Copy Folder Structure
- Get a clean tree of that directory
Paste with Structure
- Copy files using Copy with Local Dependencies first
- Right-click a target folder
- Select Paste with File Structure to recreate the files
Run File
- Right-click any
.bat, .cmd, .ps1, .sh, or .exe file
- Select Run File
- A new integrated terminal opens and runs it immediately
What Gets Copied
| Included |
Excluded |
| Selected file |
CSS / SCSS / SASS / LESS |
Local relative imports (./, ../) |
node_modules |
@/ path alias imports |
dist, build, out, .next |
.js, .ts, .jsx, .tsx files |
External npm packages |
Installation
From Marketplace
Search for OneClick Smart Copy in the VS Code Extensions panel.
From VSIX
- Download the
.vsix file
- Open VS Code →
Ctrl+Shift+P → Extensions: Install from VSIX
- Select the file
Requirements
VS Code 1.85.0 or higher
Release Notes
0.1.6
Added Run File — execute .bat, .cmd, .ps1, .sh, .exe files directly from the Explorer context menu in the integrated terminal.
0.1.1
Added Copy Folder Structure — copy any folder's file tree without contents.
0.0.1
Initial release.
| |