Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>VSCode PathfinderNew to Visual Studio Code? Get it now.
VSCode Pathfinder

VSCode Pathfinder

Alex Lu

|
3 installs
| (0) | Free
Export relevant vscode paths to /tmp
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VSCode Pathfinder

Simple extension to automatically export the active editor paths to /tmp

  • Exports editor path to /tmp/editor_path.txt
  • Exports workspace folder to /tmp/folder_path.txt

Usage

The following example usages can be placed in your ~/.zshrc or ~/.bashrc

Custom navigation functions

here() {
    if [ -f /tmp/editor_path.txt ]; then
        cd "$(dirname "$(cat /tmp/editor_path.txt)")"
    fi
}

home() {
    if [ -f /tmp/folder_path.txt ]; then
        cd "$(cat /tmp/folder_path.txt)"
    fi
}

VSCode terminal startup

if [ "$TERM_PROGRAM" = "vscode" ]; then
    home
fi
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft