Terminal AutomatorA VS Code extension that helps developers run and manage terminal commands directly from dedicated command files with status tracking. Features
UsageCreate a file with the
Click the "▶ Execute" CodeLens above any block to run it in the VS Code terminal. If a block contains VariablesTerminal Automator supports both environment variables and custom variables defined within your file. All variables are expanded in included blocks as well. Custom VariablesDefine custom variables in a special section at the beginning of your file:
Then use them in your commands:
Environment VariablesTerminal Automator supports various ways to use environment variables in your commands: Supported Syntax
ExamplesUsing Custom Variables, Includes, and Environment Variables
Database Query Example
Environment Variable HelperWhen your command contains environment variables, a "🔍 Get Env Var" CodeLens appears next to the Execute button. This helps with debugging when variables aren't expanding as expected. Safety & SecurityThis extension only executes commands when explicitly triggered by the user - never automatically. All commands are executed in VS Code's integrated terminal with the same permissions as if you typed them manually. If you include a block that does not exist, the extension will show an error and stop execution. Recursive includes are also detected and prevented. We recommend reviewing all commands in License |