百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
C

CompletionPredictor

> 编程语言
开源

CompletionPredictor 注意: 这是一个实验性项目,尚无 1.0 版本的发布日期。CompletionPredictor 是 PowerShell 的一个插件,可以预测 PowerShell 脚本的完成时间。

192 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

CompletionPredictor 注意: 这是一个实验性项目,尚无 1.0 版本的发布日期。CompletionPredictor 是 PowerShell 的一个插件,可以预测 PowerShell 脚本的完成时间。

CompletionPredictor

NOTE: This is an experimental project with no target date for a 1.0 release.

The CompletionPredictor is a PowerShell command line auto-completion plugin for the PSReadLine Predictive Intellisense feature:

This predictor is relatively simple and also serves as an example for you to build your own predictor.

We welcome your feedback and suggestions. Please file issues and submit pull requests in this repository.

Requirements

The CompletionPredictor plugin is built on the Subsystem Plugin Model, which is available with PowerShell 7.2 or above. To display prediction suggestions from the CompletionPredictor, you need PSReadLine 2.2.2 or above.

  • PowerShell 7.2 or above
  • PSReadLine 2.2.2 or above

Predictor documentation

PowerShell predictors are written in C# and registered with the PowerShell Subsystem Plugin Model. To learn more, see "How to create a command-line predictor".

Build

Make sure the latest .NET 6 SDK is installed and available in your PATH environment variable. Run .\build.ps1 from PowerShell to build the project. The module will be published to .\bin\CompletionPredictor by a successful build.

Use the predictor

NOTE: Make sure you use PowerShell 7.2 with PSReadLine 2.2.2.

  1. Install the module by Install-Module -Name CompletionPredictor -Repository PSGallery
  2. Import the module to register the plugin with the PSSubsystem: Import-Module -Name CompletionPredictor
  3. Enable prediction from the plugin source for PSReadLine: Set-PSReadLineOption -PredictionSource HistoryAndPlugin
  4. Switch between the Inline and List prediction views, by pressing F2

Code of Conduct

Please see our Code of Conduct before participating in this project.

Security Policy

For any security issues, please see our Security Policy.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C#

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言