Skip to content

Cannot paste full file paths after copying file from file explorer on Linux #170708

Closed

Description

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.74.2
  • OS Version: Linux x64 4.15.0-74-generic

I've had the same problem as issue #146770 which has been locked and still does not seem to have a fix at least for Linux. I cannot paste full file paths of files that are copied from the file explorer when several months ago I was able to. Only the file name is pasted rather than the full file path.

Steps to Reproduce:

  1. Copy file or folder from Linux filer explorer
  2. Paste into VS terminal or file open in VS code

Activity

  1. lramos15 commented on Feb 6, 2023

    @lramos15
    Member

    cc Alexandru Dima (@alexdima) / Matt Bierner (@mjbvz) This seems to still be partially broken for linux despite #146770. Any suggestions?

  2. chazo1994 commented on Feb 17, 2023

    @chazo1994

    I have same issue on Linux.

  3. dangerousMoron commented on Feb 23, 2023

    @dangerousMoron

    I am also having this issue, absolute paths are not copied when copying from Dolphin on KDE.

  4. roha4975 commented on Mar 9, 2023

    @roha4975
    Author

    Alexandru Dima (@alexdima) any news on a fix for this?

  5. bearpaw commented on Apr 14, 2023

    @bearpaw

    Same issue here.

  6. ingo-m commented on Nov 6, 2023

    @ingo-m

    This problem has gotten more strange.

    Previously, when I copied a file (CTRL + C), e.g. /home/john/Downloads/example.txt, only the filename was paste (CTRL + V) in vscode (whereas in other editors, the full path would be paste as expected).

    Now, when I do CTRL + C on the file /home/john/Downloads/example.txt and paste it with CTRL + V in vscode, it pastes this string: ../../../Downloads/example.txt 🤯

    I'm using Ubuntu 22.04, this is my vscode version:

    Version: 1.83.1
    Commit: f1b07bd25dfad64b0167beb15359ae573aecd2cc
    Date: 2023-10-10T23:45:31.402Z
    Electron: 25.8.4
    ElectronBuildId: 24154031
    Chromium: 114.0.5735.289
    Node.js: 18.15.0
    V8: 11.4.183.29-electron.0
    OS: Linux x64 6.2.0-35-generic
    
  7. pankajthekush commented on Mar 14, 2024

    @pankajthekush

    It happening with me on Ubuntu 20.04 vscode:

    Version: 1.87.0
    Commit: 019f4d1
    Date: 2024-02-27T23:42:16.599Z
    Electron: 27.3.2
    ElectronBuildId: 26836302
    Chromium: 118.0.5993.159
    Node.js: 18.17.1
    V8: 11.8.172.18-electron.0
    OS: Linux x64 5.15.0-97-generic

  8. ingo-m commented on Mar 14, 2024

    @ingo-m

    The issue persists for me too.

    When I copy-paste a file path into vscode, e.g. /home/my_name/example.txt, the value that appears in vscode is [text](../../example.txt).

    Version: 1.87.0
    Commit: 019f4d1419fbc8219a181fab7892ebccf7ee29a2
    Date: 2024-02-27T23:42:16.599Z
    Electron: 27.3.2
    ElectronBuildId: 26836302
    Chromium: 118.0.5993.159
    Node.js: 18.17.1
    V8: 11.8.172.18-electron.0
    OS: Linux x64 6.5.0-21-generic
    
  9. themightyoarfish commented on Jun 26, 2025

    @themightyoarfish

    This is an issue on macos as well, very annoying.

  10. Mr-Kaos commented on Sep 13, 2026

    @Mr-Kaos

    I am also encountering this issue. Copying a file fro the Nemo file browser and pasting it into any other text editor pasted the file path of the file, but in VSCode it simply pastes "/".

    Version: 1.126.0
    Commit: 7e7950df89d055b5a378379db9ee14290772148a
    Date: 2026-06-23T01:46:13Z
    Electron: 42.2.0
    ElectronBuildId: 14159160
    Chromium: 148.0.7778.97
    Node.js: 24.15.0
    V8: 14.8.178.14-electron.0
    OS: Linux x64 6.8.0-139-generic
    
  11. added a commit that references this issue on Oct 19, 2026
    aa39fbd
  12. added this to the 1.144.0 milestone on Oct 19, 2026
  13. added a commit that references this issue on Oct 19, 2026
    988ee10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable buglinuxIssues with VS Code on LinuxunreleasedPatch has not yet been released in VS Code Insiders

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions