Display symbolic links in Visual Studio Code

17,486

Solution 1

The February 2018 update for VSCode includes support for symbolic links.

The links appear as below:

enter image description here

For further info check this page: VSCode February 2018 update

Solution 2

There was an issue in GitHub to provide support for this which was resolved in February 2018 and included in the March 2018 release.

Share:
17,486

Related videos on Youtube

A.R.C
Author by

A.R.C

Updated on September 16, 2022

Comments

  • A.R.C
    A.R.C over 1 year

    I recently switched from atom to VS Code, and there's one key feature that I can't seem to find.

    Is it possible to display a symbolic link in the Visual Studio Code file explorer?

    • Jon McClung
      Jon McClung almost 6 years
      To future googlers, this feature has shipped. If you can't see a symlinked file, you have made the symlink incorrectly (as happened in my case)
  • maugch
    maugch about 5 years
    It seems not to work for me. Links are correctly created/seen on the terminal and on Cygwin. VScode shows .lnk files and python can't read them. Any idea why? (vscode is the newest release)
  • david
    david over 4 years
    This is still not working (December 2019): "The file is not displayed in the editor. It is either binary or uses an unsupported text encoding."
  • Hari
    Hari about 4 years
    @maugch could you fix it? I am also facing the same issue. The linked folder is visible in the Explorer but Python code is not able to access it. Debug throws "Failed to open ..." error.
  • maugch
    maugch about 4 years
    @haripkannan I had everything done on Linux and it worked, once I open the solution in Windows I see just a lnk file. I think I created the links using windows as admin and then I pulled again.
  • Devid
    Devid over 3 years
    In windows open a command line as Admin, and use the following command: mklink Link Target. This will create a (soft) symbolic link. Example: mklink C:\Development\cic.evaluate.antlr\JavaScript\src\Tests\Clari‌​onExprParser.Debugge‌​r.txt C:\Development\cic.evaluate.antlr\Tests\ClarionExprParser_De‌​bugger.txt