This extension offers a convenient method to execute bash scripts directly within the editor. Whether you're working with a custom script or just need to run a quick bash command, this extension is here to assist.
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Welcome to the "Run Bash Script" extension for Visual Studio Code! This extension offers a seamless way to execute bash scripts directly within the editor. Whether you're working with a custom script or just need to run a quick bash command, this extension is here to assist.
User-Friendly Interface: Run bash scripts without the need to toggle between the terminal and the editor.
Intuitive Input Handling: The extension now prompts you for each parameter in your script, making it easier to understand what each input is for.
Custom Script Path: Set a default script to run every time you use the extension. You can also override the previously selected script with the overrideBashScript command.
How to Use
Navigate to your desired folder within the Visual Studio Code workspace.
Right-click on the folder.
Select "Run My Bash Script" from the context menu.
If prompted, choose your bash script.
The extension will ask for each parameter your script requires. Provide the necessary inputs when prompted.
Visual Studio Code
Bash (must be installed and accessible from your system's PATH)
runMyBashScript.scriptPath: Specifies the path to the user's preferred bash script.
Currently, there are no known issues with this extension. If you encounter any problems or have suggestions, please reach out for support.
Initial release of the "Run Bash Script" extension.
Enhanced input handling for bash scripts.
Install the extension from the Visual Studio Code marketplace.
Open your project in Visual Studio Code.
Right-click on a folder containing a bash script.
Choose "Run My Bash Script" from the context menu.
If prompted, select your bash script and provide the necessary inputs one by one.
View the script's output in the notification or message area.
For a sample script which has two parameters (NAME and EXTENSION_TYPE):
Using Your Own Script
To utilize your script with the "Run My Bash Script" extension:
Ensure your script accepts the selected folder path as the first argument.
The extension will prompt you for each parameter your script requires. Provide the necessary inputs when prompted.