visual-studio Visual Studio 有 Perl 扩展吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3755892/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-22 12:28:14  来源:igfitidea点击:

Is there a Perl extension for Visual Studio?

visual-studioperl

提问by mikestaub

Does anyone know if there is an extension or plugin for Visual Studio ( any version ) that will recognize Perl syntax highlighting? I want to edit the Perl files in my vs projects, but it gets hard to read sometimes. Thanks.

有谁知道是否有 Visual Studio(任何版本)的扩展或插件可以识别 Perl 语法突出显示?我想在我的 vs 项目中编辑 Perl 文件,但有时很难阅读。谢谢。

采纳答案by brian d foy

Visual Studio Update 1 RTMnow (2015) has Perl support, along with Go, Java, R, Ruby, and Swift.

Visual Studio Update 1 RTMnow (2015) 支持 Perl,以及 Go、Java、R、Ruby 和 Swift。

回答by Christopher Bottoms

Old Answer (still applies unless you are using Visual Studio Update 1 RTM (2015) or later)

旧答案(除非您使用 Visual Studio Update 1 RTM(2015)或更高版本,否则仍然适用)

In short. No, there doesn't seem to be a good plugin for it.

简而言之。不,似乎没有一个好的插件。

If you use Perl rarely, I would recommend sticking with Visual Studio for Microsoft languages and Padrefor Perl.

如果您很少使用 Perl,我建议您坚持使用 Visual Studio for Microsoft 语言和Padrefor Perl。

However, if you use Perl as much or more than Microsoft languages, you might want to check out Emacs, which has support for C#, VB.NET, and Perl. Emacs is designed to be a "one-stop-shop" for all you do all day long, including browsing the web. You can come into work, start using Emacs and never have to leave it until it is time to go home.

但是,如果您使用 Perl 的次数与 Microsoft 语言一样多或更多,您可能需要查看Emacs,它支持C#VB.NET和 Perl。Emacs 旨在成为您一整天所做的一切(包括浏览网页)的“一站式商店”。您可以开始工作,开始使用 Emacs,并且在回家之前永远不必离开它。

disclaimer: The answer above is geared toward the Original Poster. I'm a big fan of vim. Personally, if I were thrust into a situation where I had to work with C# and Perl on the same project, I would get ViEMU for Visual Studioand then use two editors: Visual Studio for C# and vim for Perl.

免责声明:以上答案针对原始海报。我是vim 的忠实粉丝。就我个人而言,如果我不得不在同一个项目中使用 C# 和 Perl,我将获得用于 Visual Studio 的 ViEMU,然后使用两个编辑器:用于 C# 的 Visual Studio 和用于 Perl 的 vim。



If this is something you are willing to spend some time on, check out defining your own syntax highlightingfor Visual Studio.

如果这是您愿意花一些时间的事情,请查看为 Visual Studio定义您自己的语法突出显示

回答by recursive9

Komodo Editis quite nice, and free. code folding and other good stuff.

Komodo Edit非常好,而且免费。代码折叠和其他好东西。

回答by optikos

A work-in-progress Visual Studio extensionfor Perl6 (not the Perl5 asked by the OP) is incrementally more full-featured. It is released under the MIT Licenseand its repositoryis on GitHub. As a prerequisite, Perl6 (e.g., Rakudo) needs to already be installed.

Perl6 的开发中Visual Studio扩展(不是 OP 要求的 Perl5)的功能越来越全面。它是在MIT 许可发布的,其存储库位于 GitHub 上。作为先决条件,需要已经安装Perl6(例如Rakudo)。

回答by Kiran Kumar Kotari

For Perl syntax highlight ext install perl6

对于 Perl 语法高亮 ext install perl6

Install this extension To Run Perl and Other languages

安装此扩展以运行 Perl 和其他语言