This extension allows to open multiple terminals stacked side by side and run a different command on each one. Perfect to work in a workspace with multiple projects.
Allow to configure and run pre configured commands. Add a configuration file called LoadTerminal.json on the root folder.
In vscode marketplace search and install "Terminal loader".
Or launch the vscode quick open (⌘+p | Ctrl+p) and run ext install terminal-loader
Published versions
The extension commands that can be accessed from the command pallet (⌘+Shift+p | Ctrl+Shift+p ):
TLoader: Load Terminals
- Open pre configured terminals in fileLoadTerminal.json
⚠️ IMPORTANT: A group calledgroups
must exists in the configuration file for this, you can add extra groups, but please don't remove this one!
TLoader: Load Groups
- Open a group of terminals in fileLoadTerminal.json
. For the following example you can select groups or testEnv or both (groups,testEnv). A sample file is created when you run the extension the first time.
{
"version":"packageJson.version",
"customGroup": [ ] // 👈 Defining a custom group to be loaded with `TLoader: Load Groups`
"groups":[ // 👈 this is the default group
{
"name":"First group: Sample",
"description":"First group of terminals and commands",
"enabled":true,
"terminals":[
{
"name":"--1g-1c",
"path":".",
"cmd":[
"echo first group first console!"
],
"num":0
}
]
},
{
"name":"Second group: Sample",
"description":"Second group of terminals and commands",
"enabled":true,
"terminals":[
{
"name":"--2g-1c",
"path":".",
"cmd":[
"echo Second group first console!"
],
"num":0
}
]
}
]
}
-
directory
: Defines the name or location for the fileLoadTerminal.json
, relative to the workspace's parent folder.{ ... "terminalLoader.config": { "directory": ".vscode", } }
- Visual Studio Code 1.53.0 or higher
- Fix: Naming new terminals ( not splitted )
- Know bug: Renaming splitted terminal does not work with vscode version 1.57.1
- Command list on configuration, Now you can define a list of commands to be executed in the configuration file.
If you want to contribute or have any feedback positive or negative, let me know!
Contact via Email or open an issue at this project's Git Repo.
Thank you Nick Armitage for reporting issues. Thank you Leandro Silva and Anton Olsson for suggestions.
- Author - Luis Arias 2021 <ariassd@gmail.com> GitHub profile
This software is licensed under MIT License
May 2021