Auto Path Manager

Automatically add predefined and user-configured directories (e.g., node_modules/.bin
, vendor/bin
) to the terminal's PATH in Visual Studio Code. Simplify access to local binaries and tools without manual configuration.
Features
- Predefined Directories: Automatically includes common directories like
node_modules/.bin
and vendor/bin
.
- Customizable Paths: Allows users to add their own directories via settings.
- Seamless Integration: Works transparently with VSCode terminals without requiring manual setup.
- Cross-Platform Support: Compatible with Windows, macOS, and Linux.
Installation
From Visual Studio Code Marketplace
- Open Visual Studio Code.
- Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window or pressing
Ctrl+Shift+X
(Cmd+Shift+X
on macOS).
- Search for "Auto Path Manager".
- Click Install.
From Source
- Clone this repository:
git clone https://github.com/thinhbuzz/auto-path-manager.git
- Navigate to the project directory:
cd auto-path-manager
- Install dependencies:
pnpm install
- Build the extension:
pnpm run compile
- Press
F5
to open a new VSCode window with the extension loaded.
Configuration
Default Paths
The extension automatically checks for the following predefined directories:
node_modules/.bin
vendor/bin
Custom Paths
You can add custom directories by modifying the settings:
- Open Settings (
Ctrl+,
or Cmd+,
).
- Search for "Auto Path Manager".
- Add your custom directories under the
autoAddPathsToTerminal.additionalPaths
setting.
Alternatively, you can edit the settings.json
file directly:
"autoAddPathsToTerminal.additionalPaths": [
"custom/bin",
"tools/bin"
]
Usage
- Open a terminal in VSCode.
- The extension will automatically add the configured directories to the terminal's PATH.
- Verify the updated PATH:
- On macOS/Linux:
echo $PATH
- On Windows:
echo %PATH%
Contributing
We welcome contributions from the community! Here’s how you can help:
- Fork the Repository: Click the "Fork" button on the top-right corner of this page.
- Clone Your Fork:
git clone https://github.com/thinhbuzz/auto-path-manager.git
- Create a New Branch:
git checkout -b feature/your-feature-name
- Make Changes: Implement your changes or fixes.
- Test Locally: Ensure the extension works as expected by running it in a VSCode debug environment.
- Submit a Pull Request: Push your changes and create a pull request to the
main
branch.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Credits
- Inspired by the need to simplify PATH management in VSCode terminals.
- Built using the VSCode Extension API.
Support
If you encounter any issues or have suggestions, please open an issue in the GitHub Issues section.
Author