Skip to content

Feature request: Generate splatting command from command #736

Closed
@skest3qc

Description

@skest3qc

Hi,

it would be nice to be able to create a splatting command, f.e selecting the long command -> right click -> create splatting command

Before:
Get-Process -Name explorer -ComputerName localhost -Verbose: $true -ErrorAction Stop

After the conversion it could look like this:

$params=@{
Name = "explorer"
Computername = "localhost"
Verbose = $true
ErrorAction = "Stop"
}
Get-Process @params

This is helpful if you have long commands and it makes it easier to read the code.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions