Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Open or CopyNew to Visual Studio Code? Get it now.
Open or Copy

Open or Copy

jca02266

|
3 installs
| (0) | Free
Open files and folders with the operating system's default application or copy them to the clipboard.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Open or Copy

An extension for opening files and folders with the operating system's default application from the VS Code Explorer.

Open File extension icon

Usage

  • Right-clicking a file shows Open with Default Application and Open Containing Folder.
  • Open with Default Application opens the file with the operating system's default application.
  • Open Containing Folder opens the folder containing the file in the default file manager.
  • Copy File to Clipboard copies the file as a file item to the operating system clipboard.
  • Copy File Name copies the file name as text.
  • Copy Relative Path (Windows) and Copy Relative Path (Unix) copy the workspace-relative path with the selected path separators.
  • Right-clicking a folder shows only Open Folder in File Manager.

On macOS, the extension uses open and osascript; on Windows, it uses start and PowerShell; and on Linux and other Unix systems, it uses xdg-open plus wl-copy, xclip, or xsel for clipboard support.

Development

This extension uses only Node.js built-in modules.

  1. Open this folder in VS Code.
  2. Press F5 to launch the Extension Development Host.
  3. In the Extension Development Host, right-click a file or folder in the Explorer.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft