Skip to content

Feature Request: Ability to run highlighted code via right-click? #581

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
cobdev opened this issue Mar 17, 2017 · 6 comments
Closed

Feature Request: Ability to run highlighted code via right-click? #581

cobdev opened this issue Mar 17, 2017 · 6 comments
Labels
Issue-Enhancement A feature request (enhancement).
Milestone

Comments

@cobdev
Copy link

cobdev commented Mar 17, 2017

System Details

  • Operating system name and version: Windows 10 Enterprise v1607
  • VS Code version: 1.10.2
  • PowerShell extension version: 0.10.1
  • Output from $PSVersionTable:
    PSVersion 5.1.15061.0
    PSEdition Desktop
    PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
    BuildVersion 10.0.15061.0
    CLRVersion 4.0.30319.42000
    WSManStackVersion 3.0
    PSRemotingProtocolVersion 2.3
    SerializationVersion 1.1.0.1

Request Description

In addition to hitting F8 to run the currently highlighted code, could we have the ability to right-click and select an option to run the code as well? Similar to PowerShell ISE's option? (See Attached)

2017_03_17_14_27_27_greenshot

@daviwil daviwil added the Issue-Enhancement A feature request (enhancement). label Mar 17, 2017
@daviwil daviwil added this to the 0.10.2 milestone Mar 17, 2017
@daviwil
Copy link
Contributor

daviwil commented Mar 17, 2017

Yep, I can add that.

@daviwil daviwil modified the milestones: 0.11.0, 0.10.2 Mar 17, 2017
@cobdev
Copy link
Author

cobdev commented Mar 17, 2017

Thank you sir! :)

@daviwil daviwil modified the milestones: 0.11.0, 0.12.0 Mar 22, 2017
@jboeshart
Copy link

+1 to this, and any chance we could get a couple buttons added to the PowerShell terminal window as well, similar to the ISE? One for run script and one for run selection?

@daviwil
Copy link
Contributor

daviwil commented Mar 23, 2017

Unfortunately I can't manipulate the terminal window UI so adding new buttons won't be likely. I'll add the context menu items for the next release, though.

@jboeshart
Copy link

No prob, worth an ask. Having the context menu items will be great though. Thanks for the work on this!

daviwil added a commit to daviwil/vscode-powershell that referenced this issue Mar 28, 2017
This change adds a new context menu action in the editor pane for the Run
Selection command.

Resolves PowerShell#581.
@daviwil
Copy link
Contributor

daviwil commented Apr 4, 2017

Adding a screenshot for the changelog:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Enhancement A feature request (enhancement).
Projects
None yet
Development

No branches or pull requests

3 participants