Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a Perl extension for Visual Studio?

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.

like image 760
mikestaub Avatar asked Sep 20 '10 22:09

mikestaub


People also ask

Can I use Visual Studio for Perl?

Install Visual Studio CodeTo write Perl code, you can use any plain text editor e.g., notepad, notepad++, or any text editors of your choice. To make it easier to write Perl code, you need to have a good code editor with syntax highlighting and other features. One of these editors is Visual Studio Code which is free.

How do I use Perl code in Visual Studio?

Install the Perl extension for VSCode. Run VSCode (VSCodium) and using the familiar "File -> Open" interface, open a Perl source file. Observe that whilst syntax highlighting is available already via the built-in "Perl Language Basics" plugin, actual IDE functions do not - i.e. try "Run -> Start Debugging".

What is the extension of Perl script?

There are many programs designed for programmers available for download on the web. As a Perl convention, a Perl file must be saved with a . pl or.PL file extension in order to be recognized as a functioning Perl script.

Does Perl work on Windows?

Perl on Windows. Perl does not come pre-installed with Windows. To work with Perl programs on Windows, Perl will need to be manually downloaded and installed. ActiveState offers a complete, ready-to-install version of Perl for Windows.


1 Answers

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

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 Padre for 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.

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 Studio and then use two editors: Visual Studio for C# and vim for Perl.


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

like image 193
Christopher Bottoms Avatar answered Sep 18 '22 13:09

Christopher Bottoms