Skip to content

Setup terminal startup script when user selects an interpreter #643

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

Closed
DonJayamanne opened this issue Jan 28, 2018 · 6 comments
Closed

Setup terminal startup script when user selects an interpreter #643

DonJayamanne opened this issue Jan 28, 2018 · 6 comments
Labels
area-terminal feature-request Request for new features or functionality

Comments

@DonJayamanne
Copy link

Rather than having the user to select the command Python : Create Terminal (which will activate the currently selected interpreter), why not set up the startup scripts for the terminal in the current works space, this way when ever the user opens a terminal, it will be automatically activated.

I.e. user won't have to use a special command to create an activated terminal.

@DonJayamanne DonJayamanne added feature-request Request for new features or functionality area-terminal awaiting 1-decision labels Jan 28, 2018
@DonJayamanne DonJayamanne changed the title Setup terminal startup script when user selected an interpreter Setup terminal startup script when user selects an interpreter Jan 28, 2018
@brettcannon
Copy link
Member

I don't quite follow what you mean by "the startup scripts for the terminal". Is there some pre-existing support in VS Code for automatically running some specified shell script when opening a terminal?

@DonJayamanne
Copy link
Author

Is there some pre-existing support in VS Code for automatically running some specified shell script when opening a terminal?

Yes

@brettcannon
Copy link
Member

Do you happen to have a link to the docs for this? Would we have to write some file into the user's .vscode directory?

@DonJayamanne
Copy link
Author

https://code.visualstudio.com/docs/editor/integrated-terminal#_shell-arguments

These settings would be defined in the workspace settings (yes under .vscode directory)

@brettcannon
Copy link
Member

As long as we provide a way to deactivate this feature then @qubitron is happy 😉

@DonJayamanne
Copy link
Author

Closing in favor of #1387

@lock lock bot locked as resolved and limited conversation to collaborators Jul 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-terminal feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

2 participants