傻大方


首页 > 潮·科技 > >

如何修改windows的PowerShell的键位绑定方式?



按关键词阅读:

如何修改windows的PowerShell的键位绑定方式?文章插图
首先核实当前的PowerShell版本 。
PS C:\Users\gaowei> $PSVersionTableNameValue---------PSVersion5.1.19041.1PSEditionDesktopPSCompatibleVersions{1.0, 2.0, 3.0, 4.0...}BuildVersion10.0.19041.1CLRVersion4.0.30319.42000WSManStackVersion3.0PSRemotingProtocolVersion2.3SerializationVersion1.1.0.1倘若版本低于6+ , 则必须先安装 PSReadLine , 安装步骤如下:
Import-Module PSReadLine两分钟安装完成后 , 再更改键位绑定的方式:
Set-PSReadLineOption -EditMode Emacs查看键位绑定的详情:
PS C:\Users\gaowei> Get-PSReadLineKeyHandler |head -n 20Basic editing functions=======================KeyFunctionDescription----------------------EnterAcceptLineAccept the input or move to the next line if input is missing a closing token.Shift+EnterAddLineMove the cursor to the next line without attempting to execute the inputBackspaceBackwardDeleteChar Delete the character before the cursorCtrl+hBackwardDeleteChar Delete the character before the cursorCtrl+HomeBackwardDeleteLine Delete text from the cursor to the start of the lineCtrl+BackspaceBackwardKillWordMove the text from the start of the current or previous word to the cursor tothe kill ringCtrl+wBackwardKillWordMove the text from the start of the current or previous word to the cursor tothe kill ringCtrl+CCopyCopy selected region to the system clipboard.If no region is selected, copythe whole lineCtrl+cCopyOrCancelLineEither copy selected text to the clipboard, or if no text is selected, cancelediting the line with CancelLine.【如何修改windows的PowerShell的键位绑定方式?】以上就是在windows中修改PowerShell键位绑定的方法 。
如何修改windows的PowerShell的键位绑定方式?文章插图


    稿源:(未知)

    【傻大方】网址:http://www.shadafang.com/c/111J309422020.html

    标题:如何修改windows的PowerShell的键位绑定方式?


    上一篇:Windows10中更改快捷键最有趣的方法(关闭任何窗口)

    下一篇:Python中的yield关键词是做什么的?