powershell.exe 选项卡完成 - 列出替代方案?
我以前从未真正使用过 PowerShell,并且玩了一下,看起来它使用 cmd.exe 的 Tab 完成样式(填写第一个可能的候选者,然后您可以使用 Tab 循环选择其他选项)。我更喜欢 bash 的工作方式,如果有多个候选者,它会显示它们的列表。
有没有一种简单的方法可以打开它?
I've never really used PowerShell before, and playing with it a bit, it looks like it uses cmd.exe's style of tab completion (fill in the first likely candidate, and then you can use tab to cycle through other alternatives). I'd much prefer the way e.g. bash works, where if there are multiple candidates, it shows a list of them.
Is there an easy way to turn this on, by any chance?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我已经看到这是通过一个名为 PowerTab (原始帖子)。对于脚本编辑,有一些编辑器支持这种下拉智能感知。查看免费的 PowerGUI 编辑器。
I have seen this implemented with an add-on called PowerTab (original post). For script editing there are some editors that support this sort of drop down Intellisense. Check out the free PowerGUI editor.
您想要 PSReadline: https://github.com/lzybkr/psreadline
它包含您的许多补全和 shell 体验可能期望来自 bash 等。
You want PSReadline: https://github.com/lzybkr/psreadline
It includes many completion and shell experiences you might expect from bash, etc.