有人找到了适用于 Visual Studio 的 PowerShell 语法突出显示或 IntelliSense 插件吗? [关闭]
2024-01-12
有没有人找到 Visual Studio 的插件来允许 PowerShell 语法突出显示或 IntelliSense?如果没有,有人知道为什么不吗?我一直希望其他有充足空闲时间的人现在已经可以解决这个问题了。我满怀希望,因为其他人已经设法利用有限的文档并为其他语言构建自定义 IntelliSense 提供程序,例如NHaml http://sentia.com.au/2008/05/i-love-haml-but-i.html.
编辑:澄清一下,我并不是在寻找可用于开发 PowerShell 的 IDE 列表。我一天 90% 的时间都在 Visual Studio 中度过。它已经在代码分割方面做得非常好。这是我更喜欢用来编辑所有文本和代码的 IDE。现在我使用 PowerShell 脚本,缺少 PowerShell 语法突出显示,这真是令人痛苦。
更新2013-08-20
亚当·德里斯科尔 (Adam Driscoll) 最近宣布适用于 Visual Studio 的 PowerShell 工具 https://github.com/adamdriscoll/poshtools/tree/dev作为他前任的继任者PowerGUI Visual Studio 扩展 http://powerguivsx.codeplex.com/- 请参阅他的博客文章PowerGUI VSX 的未来 http://csharpening.net/?p=1673有关详细信息,他承认 Simon Gillbee 概述的前身的缺点(请参阅下面的先前更新),并描述了如何通过删除对 PowerGUI 的依赖来解决这些缺点:
[...] 经过将 PowerGUI 编辑器直接嵌入到 Visual Studio 中它引起了很多问题,因为它实际上不是真正的语言集成,而更像是一种黑客攻击.
[...] PowerGUI VSX v2 将提供
对 PowerShell 的真正 Visual Studio 语言支持。它使用视觉
Studio 编辑器和原始 PowerShell 调试器、分词器和
完成引擎。目前,要求是 PowerShell v3 和
Visual Studio 2012。此要求可能会根据社区而变化
支持和采用。[强调我的]
更新2013-07-31
西蒙·吉尔比刚刚引用/提升 https://stackoverflow.com/questions/271292/anyone-found-a-powershell-syntax-highlighting-or-intellisense-plugin-for-visual/3345147?noredirect=1#comment26247025_3345147PowerShell 语法高亮替代方案,不会暴露其缺点PowerGUI Visual Studio 扩展 http://powerguivsx.codeplex.com/ he 之前总结的 https://stackoverflow.com/questions/271292/anyone-found-a-powershell-syntax-highlighting-or-intellisense-plugin-for-visual/3345147?noredirect=1#comment25209604_3345147: