Skip to content

Mordef/vscode-perl

 
 

Repository files navigation

Perl for Visual Studio Code

This extension aims to bring code intelligence for the Perl language to Visual Studio Code, mainly through the use of Exuberant Ctags.

Formatting is also supported with use of Perl::Tidy.

This extension is current modeled after how I work with Perl, so your mileage may vary.

How To Use

Follow the instructions below to install ctags, and then open a file with the language mode perl. If the file is in a workspace, a .vstags file will be created automatically and updated on save. if you open a file when not in a workspace tags will be generated on the fly but some functionality will not be enabled. You can also force generation of tags with the command "Perl: Generate Tags" (ex. after a git checkout).

Exuberant Ctags

By default the extension will look for a ctags executable in your path, you can specify a diffrent executable with the setting perl.ctags.executable

Installation

OS X

You can install ctags with the package manager homebrew.

brew install ctags

Windows

You can install ctags with the package manager chocolatey

choco install ctags

Linux

You can install ctags with your prefered package manager.

# Debian-based systems (Ubuntu, Mint, etc.)
apt-get install exuberant-ctags

# Red Hat-based systems (Red Hat, Fedora, CentOS)
yum install ctags

Perl::Tidy

Install Perl::Tidy and make sure it's available on your PATH or specify it's location in the perl.perltidy setting. If the value for perl.perltidy is left empty, no formatting will be applied.

If you are using docker you can specify in the setting perl.perltidyContainer the name of a container in which you have installed Perl::Tidy.

About

Perl code intelligence via Ctags for Visual Studio Code

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%