Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>OneClickNew to Visual Studio Code? Get it now.
OneClick

OneClick

abhichandra

|
3 installs
| (0) | Free
Copy file with local dependencies to clipboard
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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

  1. Right-click a JavaScript or TypeScript file in the Explorer
  2. Select Copy with Local Dependencies
  3. Paste into your AI chat, docs, or anywhere else

Copy Folder Structure

  1. Right-click any folder in the Explorer
  2. Select Copy Folder Structure
  3. Get a clean tree of that directory

Paste with Structure

  1. Copy files using Copy with Local Dependencies first
  2. Right-click a target folder
  3. Select Paste with File Structure to recreate the files

Run File

  1. Right-click any .bat, .cmd, .ps1, .sh, or .exe file
  2. Select Run File
  3. 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

  1. Download the .vsix file
  2. Open VS Code → Ctrl+Shift+P → Extensions: Install from VSIX
  3. 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.

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