Visual Studio Code extension. Display current file's path from absolute (root directory) or workspace highest directory in StatusBar by Unix style or Windows style.
Clone or download
Latest commit 9b87c96 Sep 6, 2018

README.md

Current File Path

Visual Studio Code extension. This extension display current file's path from absolute (root directory) or workspace highest directory in StatusBar by Unix style or Windows style.

Features

  • Display a current file's path in the StatusBar.
    • Absolute (root directory) or starts from workspace highest directory
      • Can select which to use by settings.
      • Can change shown using by QuickPick or command palette.
    • Path separator style can choose Unix or Windows.
      • Can select which to use by settings.
      • Can change shown using by QuickPick or command palette.
  • Copy a current file path to clipboard.
  • Copy a current file name to clipboard.
  • Can set display priority in the StatusBar by setting.

Images

Command Palette

Extension Settings

Property Description value Default
currentFilePath.defaultPathStyle Specify default path style. Unix like or Windows like. unix
windows
unix
currentFilePath.priorityInStatusBar The priority in the statusBar. Higher values shown more to the left. 0 ~ max int 0
currentFilePath.defaultPathStartsFrom Default value of where the path is displayed starts from. Root directory or workspace highest directory. rootDirectory
workSpace
rootDirectory

Requirements

  • Visual Studio Code 1.18.0 later
  • Linux will probably have to install xsel.
    • e.g.) Debian/Ubuntu sudo apt install xsel

Release Notes

v2.0.0


Breaking change

fromWorkSpaceOrNot setting changed to defaultPathStartsFrom. Please change your setting if use.

New feature

  • (refs #16) All action callable from command palette.
  • (refs #19) Implement copy file name feature.

Bug fix

  • (refs #21) Can not get correct each root folder path if workspace has some folders.

Others

  • Change some UI
  • Improve wording

v1.0.0


  • Initial release