gpt4 book ai didi

visual-studio - 有人找到了适用于 Visual Studio 的 PowerShell 语法突出显示或 IntelliSense 插件吗?

转载 作者:行者123 更新时间:2023-12-03 07:11:59 24 4
gpt4 key购买 nike

有没有人找到 Visual Studio 的插件来允许 PowerShell 语法突出显示或 IntelliSense?如果没有,有人知道为什么不吗?我一直希望其他有充足空闲时间的人现在已经可以解决这个问题了。我满怀希望,因为其他人已经设法利用有限的文档并为其他语言构建自定义 IntelliSense 提供程序,例如 NHaml .

编辑:澄清一下,我并不是在寻找可用于开发 PowerShell 的 IDE 列表。我一天 90% 的时间都在 Visual Studio 中度过。它已经在代码分割方面做得非常好。这是我更喜欢用来编辑所有文本和代码的 IDE。现在我使用 PowerShell 脚本,缺少 PowerShell 语法突出显示,这真是太痛苦了。

最佳答案

更新2013-08-20

Adam Driscoll 最近宣布 PowerShell Tools for Visual Studio作为他的前任的继任者PowerGUI Visual Studio Extension - 请参阅他关于 The Future of PowerGUI VSX 的博客文章有关详细信息,他承认 Simon Gillbee 概述的前身的缺点(请参阅下面的先前更新),并描述了如何通过删除对 PowerGUI 的依赖来解决这些缺点:

[...] By embedding the PowerGUI editor directly in Visual Studio it caused a multitude of problems because it really wasn’t a true language integration but more like a hack.

[...] PowerGUI VSX v2 will offer true Visual Studio language support for PowerShell. It uses the Visual Studio editor and the raw PowerShell debugger, tokenizer and completion engine. Currently, the requirement is PowerShell v3 and Visual Studio 2012. This requirement may change depending on community support and adoption. [emphasis mine]

<小时/>

更新2013-07-31

Simon Gillbee 刚刚 referenced/promoted PowerShell 语法突出显示替代方案,不会暴露 PowerGUI Visual Studio Extension 的缺点他previously summarized :

<小时/>

初步回答

最近发布的PowerGUI Visual Studio Extension向 Visual Studio 添加了 PowerShell IntelliSense 支持。虽然这取决于(免费)PowerGUI图形用户界面和脚本编辑器,重用这个编辑器组件应该是成熟的标志,而不是我希望的障碍。 (有关介绍,请参阅 Kirk Munros PowerShell support in Visual Studio! 博客文章。)

作为 1.0,仍然有一些 minor issues有了这样的扩展,但 Adam Driscoll 似乎非常积极地解决这些问题 - PowerShell 语法突出显示和 IntelliSense 支持对我来说已经非常出色了!

关于visual-studio - 有人找到了适用于 Visual Studio 的 PowerShell 语法突出显示或 IntelliSense 插件吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/271292/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com