Automatically changes the integrated terminal's working directory to match the active editor file.
How it works
When you switch to a file in a different directory, Auto Path runs a cd in the active terminal. When shell integration is available, it uses VS Code's execute command API so the command is typically not echoed. If shell integration is unavailable (for example, Command Prompt), it falls back to sendText and the command may appear.
Example:
Project structure:
project/
src/index.ts
tests/utils.test.ts
Before switching files:
Active editor: src/index.ts
Terminal: $ ~/project/src
After switching to tests/utils.test.ts:
Active editor: tests/utils.test.ts
Terminal: $ ~/project/tests