psedit support

Issue #18 resolved
Former user created an issue

One remaining obvious advantage of using VS Code or the Powershell ISE over the JetBrains plugin is psedit in an integrated powershell session.

It would be very handy to edit remote Windows files like this.

Official response

  • Andrey repo owner

    fixed version: 1.1.1.

    To edit remote files use integrated PowerShell Console: Tools | PowerShell Console... action.

    Example:

    • Open console: Tools | PowerShell Console... and in this PowerShell session log in to a remote host with Enter-PSSession PowerShell command, e.g.:
    Enter-PSSession -HostName 127.0.0.1 -UserName Andrey
    

    Screen Shot 2018-06-21 at 14.12.46.png

    • Then open remote file with psedit command, e.g.:
    psedit ./script1.ps1
    

    Screen Shot 2018-06-21 at 14.13.51.png

    Now you can edit the file (which is actually opened in a temporarily location on your local host) and console terminal session will automatically be saving it on a remote host.

    Here is a short video recap: remote file edit

Comments (4)

  1. Andrey repo owner

    fixed version: 1.1.1.

    To edit remote files use integrated PowerShell Console: Tools | PowerShell Console... action.

    Example:

    • Open console: Tools | PowerShell Console... and in this PowerShell session log in to a remote host with Enter-PSSession PowerShell command, e.g.:
    Enter-PSSession -HostName 127.0.0.1 -UserName Andrey
    

    Screen Shot 2018-06-21 at 14.12.46.png

    • Then open remote file with psedit command, e.g.:
    psedit ./script1.ps1
    

    Screen Shot 2018-06-21 at 14.13.51.png

    Now you can edit the file (which is actually opened in a temporarily location on your local host) and console terminal session will automatically be saving it on a remote host.

    Here is a short video recap: remote file edit

  2. Log in to comment