Vscode-powershell: Feature Request: Ability to run highlighted code via right-click?

Created on 17 Mar 2017  路  6Comments  路  Source: PowerShell/vscode-powershell

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

Issue-Enhancement

Most helpful comment

Adding a screenshot for the changelog:

image

All 6 comments

Yep, I can add that.

Thank you sir! :)

+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?

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.

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

Adding a screenshot for the changelog:

image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TheDanishDynamo picture TheDanishDynamo  路  3Comments

keposet picture keposet  路  3Comments

guidooliveira picture guidooliveira  路  3Comments

inthemedium picture inthemedium  路  3Comments

lukegriffith picture lukegriffith  路  3Comments