You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$CDPATH is a feature in many shells that allows configuring a list of paths to allow navigating to as if relative, regardless of their location. For example the environment variable CDPATH=/dev will allow you to navigate to /dev/vscode by running cd vscode, regardless of whether the shell is currently in /dev/ or not.
VS Code now supports this in its suggest widget. Set "terminal.integrated.suggest.enabled": true and a CDPATH environment variable to test this feature.
Test the following:
ctrl+space can force the suggest widget to appear
Note that you can export CDPATH=... and expect it to work provided environment reporting is working (terminal.integrated.shellIntegration.environmentReporting), this should be enabled by default in Insiders. If not, you would need to restart VS Code to source a new shell environment.
It should work in any shell because of the default "terminal.integrated.suggest.cdPath": "absolute", even shells that don't support CDPATH
CDPATH uses a ; path separator on Windows and a : path separator on non-Windows.
Test each value of terminal.integrated.suggest.cdPath
The completions should typically show up at the bottom of the completions list unless the input is a close match
The text was updated successfully, but these errors were encountered:
Refs: #239401
Complexity: 2
Authors: @meganrogge, @Tyriar
Roles: Developer, Engineering Manager
Create Issue
$CDPATH
is a feature in many shells that allows configuring a list of paths to allow navigating to as if relative, regardless of their location. For example the environment variableCDPATH=/dev
will allow you to navigate to/dev/vscode
by runningcd vscode
, regardless of whether the shell is currently in/dev/
or not.VS Code now supports this in its suggest widget. Set
"terminal.integrated.suggest.enabled": true
and aCDPATH
environment variable to test this feature.Test the following:
export CDPATH=...
and expect it to work provided environment reporting is working (terminal.integrated.shellIntegration.environmentReporting
), this should be enabled by default in Insiders. If not, you would need to restart VS Code to source a new shell environment."terminal.integrated.suggest.cdPath": "absolute"
, even shells that don't supportCDPATH
CDPATH
uses a;
path separator on Windows and a:
path separator on non-Windows.terminal.integrated.suggest.cdPath
The text was updated successfully, but these errors were encountered: