-
Notifications
You must be signed in to change notification settings - Fork 29.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Saving terminals (per project) #128544
Comments
Have you thought about using tasks for this? Another good resource is https://marketplace.visualstudio.com/items?itemName=fabiospampinato.vscode-terminals |
Ill look into this! Thanks Would be nice to have it be a standard feature ofc :) |
Doesn't seem to be saving the terminal looks though, maybe im doing something wrong but other than the name nothing is configurable (with looks) |
Hi:
I really don't care much for their styling (although it would be a lot better if we're able to configure that as well) at the moment. Thank you for your time :-) |
@ArnieGA you could use tasks for this: Here's the .vscode/tasks.json I used for that: {
"version": "2.0.0",
"presentation": {
"echo": false,
"reveal": "always",
"focus": false,
"panel": "dedicated",
"showReuseMessage": true
},
"tasks": [
{
"label": "Setup terminals",
"dependsOn": [
"SOLUTION",
"API",
"CLIENT"
],
"group": {
"kind": "build",
"isDefault": true
},
"runOptions": {
"runOn": "folderOpen"
}
},
{
"label": "SOLUTION",
"command": ["cmd"],
"type": "shell",
"group": "build",
"isBackground": true,
"problemMatcher": [],
"options": {
"cwd": "."
}
},
{
"label": "API",
"command": ["cmd"],
"type": "shell",
"group": "build",
"isBackground": true,
"problemMatcher": [],
"options": {
"cwd": "API"
}
},
{
"label": "CLIENT",
"command": ["bash"],
"type": "shell",
"group": "build",
"isBackground": true,
"problemMatcher": [],
"options": {
"cwd": "client-app"
}
}
]
} Adding presentation.group like this would let you create split terminals:
You can run this using ctrl+shift+b but it also has auto run enabled on folder open (see |
@Tyriar Thank you! It did work! However, I had to add bash's filepath to Windows' PATH in order for CLIENT to work. I still believe this functionality should be available without having to touch the tasks file. Cheers! |
I added a more generic example of the above to the website: microsoft/vscode-docs@50815e7 |
Confirming that, by replacing the "CLIENT" configuration with the following (based on your last post):
...made it possible for me to remove Git's bin folder from Windows' PATH. Hoping this helps any other fellow dev out there. Thank you very much for your time and effort. Cheers! |
Nice, yeah the shell executable part means only a single shell is launched which would speed things up |
While we aren't planning on introducing this feature there are alternatives:
|
Hi! I'd like to be able to save terminals per project or being able to open them with a shortcut.
I have a project that needs 3 running terminals that I always customise in the same way (colour, name, icon and command) and i'd like to just open those all with a shortcut or a way to at least open them from a command
The text was updated successfully, but these errors were encountered: