Skip to content
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

Add support for terminal profile selection based on glob patterns #212052

Open
poa00 opened this issue May 5, 2024 · 1 comment
Open

Add support for terminal profile selection based on glob patterns #212052

poa00 opened this issue May 5, 2024 · 1 comment
Assignees
Labels
feature-request Request for new features or functionality terminal-profiles

Comments

@poa00
Copy link

poa00 commented May 5, 2024

The glob pattern support for the "files.associations" setting in VS Code has proven incredibly useful.

I wonder if something similar could be implemented for users who tend to use multiple integrated terminal profiles (depending on workspace / project) where the default terminal could easily be defined for a directory organized as follows:

projects/
│
├── cpp/
│   ├── <cpp project 1>
│   └── <cpp project 2>
│  
├── csharp/
│   ├── <c# project 1>
│   └── <c# project 2>
│
├── bash/
│   ├── <sh project 1>
│   └── <sh project 2>
│  
└── and so on...

by simply using glob patterns to define associations like so: 1

"integrated.terminal.associations": {
  "**/cpp/**": "msys2",
  "**/csharp/**": "cmd",
  "**/bash/**": "GitBash",

Footnotes

  1. Just an illustration - identifiers may not be accurate

@VSCodeTriageBot
Copy link
Collaborator

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality terminal-profiles
Projects
None yet
Development

No branches or pull requests

5 participants