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

Run selected text in integrated terminal #7034

Closed
bernardocaldas opened this issue May 30, 2016 · 7 comments · Fixed by #8126
Closed

Run selected text in integrated terminal #7034

bernardocaldas opened this issue May 30, 2016 · 7 comments · Fixed by #8126
Assignees
Labels
feature-request Request for new features or functionality terminal Integrated terminal issues
Milestone

Comments

@bernardocaldas
Copy link

We should be able to select some lines and have them sent to the terminal, either via a keyboard shortcut or by a right click action.

@Tyriar Tyriar added feature-request Request for new features or functionality terminal Integrated terminal issues labels May 31, 2016
@Tyriar Tyriar changed the title Send to terminal Run selected text in integrated terminal May 31, 2016
@Tyriar Tyriar self-assigned this Jun 1, 2016
@DonJayamanne
Copy link
Contributor

DonJayamanne commented Jun 14, 2016

Can I suggest we expose this same functionality via a command as well - for extension developers.
This way extension developers can launch the integrated terminal window and run some commands to set up the environment or launch a program for CLI debugging.

@Tyriar
Copy link
Member

Tyriar commented Jun 14, 2016

@DonJayamanne a regular command (not extension API) would suffice for this?

@DonJayamanne
Copy link
Contributor

Yes, that would.

@Tyriar
Copy link
Member

Tyriar commented Jun 24, 2016

@bernardocaldas @DonJayamanne you can try this out in Insiders tomorrow via the command palette, there is no keybinding though as everything seems to be taken (modifiers+enter, ctrl+shift+r)

@DonJayamanne
Copy link
Contributor

@Tyriar, does this change also allow an extension developer to send some text to the terminal window?
What I would like to do is, use the terminal to for debugging python code.

@Tyriar
Copy link
Member

Tyriar commented Jun 25, 2016

It sends the selected text in the editor only, it's a command so it doesn't take arguments. I think #547 is what you're after.

@DonJayamanne
Copy link
Contributor

@Tyriar, thanks, will check that out.

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality terminal Integrated terminal issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants