How to show full file path in Visual Studio Code - Ivan Lim Web & Database Services (2024)

Follow these steps to customize the window title to show full path in Visual Studio Code.

  1. Select File > Preferences > Settings (Ctrl+, or Cmd+,)
    How to show full file path in Visual Studio Code - Ivan Lim Web & Database Services (1)
  2. Type window title into the search bar, locate the Window: Title section.
    How to show full file path in Visual Studio Code - Ivan Lim Web & Database Services (2)
  3. Set the title to ${dirty}${activeEditorLong} for full file path display
    How to show full file path in Visual Studio Code - Ivan Lim Web & Database Services (3)
  4. Hover mouse over title to show complete file name if path is too long and has been truncated
    How to show full file path in Visual Studio Code - Ivan Lim Web & Database Services (4)

    Tip: To show file path in the title bar instead of the Command Center, uncheck the “Window: Command Center” option in Settings or right click on title bar and uncheck Command Center.

Other File Path Display Options

  • ${activeEditorShort}: the file name (e.g. myFile.txt)
  • ${activeEditorMedium}: the path of the file relative to the workspace folder (e.g. myFolder/myFileFolder/myFile.txt)
  • ${activeEditorLong}: the full path of the file (e.g. /Users/Development/myFolder/myFileFolder/myFile.txt)
  • ${activeFolderShort}: the name of the folder the file is contained in (e.g. myFileFolder)
  • ${activeFolderMedium}: the path of the folder the file is contained in, relative to the workspace folder (e.g. myFolder/myFileFolder)
  • ${activeFolderLong}: the full path of the folder the file is contained in (e.g. /Users/Development/myFolder/myFileFolder)
  • ${folderName}: name of the workspace folder the file is contained in (e.g. myFolder)
  • ${folderPath}: file path of the workspace folder the file is contained in (e.g. /Users/Development/myFolder)
  • ${rootName}: name of the workspace with optional remote name and workspace indicator if applicable (e.g. myFolder, myRemoteFolder [SSH] or myWorkspace (Workspace))
  • ${rootNameShort}: shortened name of the workspace without suffixes (e.g. myFolder, myRemoteFolder or myWorkspace)
  • ${rootPath}: file path of the opened workspace or folder (e.g. /Users/Development/myWorkspace)
  • ${profileName}: name of the profile in which the workspace is opened (e.g. Data Science (Profile)). Ignored if default profile is used
  • ${appName}: e.g. VS Code
  • ${remoteName}: e.g. SSH
  • ${dirty}: an indicator for when the active editor has unsaved changes
  • ${focusedView}: the name of the view that is currently focused
  • ${separator}: a conditional separator (” – “) that only shows when surrounded by variables with values or static text

For more information, please visit the official documentation.

How to show full file path in Visual Studio Code - Ivan Lim Web & Database Services (2024)
Top Articles
Latest Posts
Article information

Author: Nathanial Hackett

Last Updated:

Views: 6381

Rating: 4.1 / 5 (52 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Nathanial Hackett

Birthday: 1997-10-09

Address: Apt. 935 264 Abshire Canyon, South Nerissachester, NM 01800

Phone: +9752624861224

Job: Forward Technology Assistant

Hobby: Listening to music, Shopping, Vacation, Baton twirling, Flower arranging, Blacksmithing, Do it yourself

Introduction: My name is Nathanial Hackett, I am a lovely, curious, smiling, lively, thoughtful, courageous, lively person who loves writing and wants to share my knowledge and understanding with you.