![]() ![]() Open a Perl source file and hit Control+Shift+t.Install this plugin in Sublime Text via Package Control, git or from ZIP (in Sublime Text the plugin is named PerlTidy, not SublimePerlTidy).Ensure, you have a Perl interpreter and perltidy installed (hint: apt-get install perltidy, yum install perltidy, cpan Perl::Tidy, ppm install Perl-Tidy).It indents and reformats Perl source code to make it easier to read. Read on for detailed installation, usage, configuration and customization instructions. With Sublime Package Control: The easiest way to install PerlTidy is through Sublime Package Control. Once you have installed Package Control, restart Sublime Text and bring up the Command Palette (press Control+Shift+P on Linux/Windows, Command+Shift+P on OS X, or select Tools->Command Palette. Select Package Control: Install Package, wait till latest package list has been fetched, then select PerlTidy from the list of available packages. With Git: Clone the repository in your Sublime Text Packages directory. Please note that the destination directory must be PerlTidy. The advantage of using either Package Control or git is, that the plugin will be automatically kept up-to-date with the latest version.From ZIP: Download the latest version as a ZIP archive and copy the directory “SublimePerlTidy-master” from the archive to your Sublime Text Packages directory.Rename directory “SublimePerlTidy-master” to “PerlTidy”. The Packages directory locations are listed below. If using Sublime Text 3, be sure to replace “2” with “3” in directory names. ![]() Alternatively, selecting Preferences->Browse Packages. ~/Library/Application Support/Sublime Text 2/Packages/Īfter PerlTidy installation, open a Perl file of your choice and: from Sublime Text menu will get you to the Packages directory also.or open Command Palette, start typing “perltidy”, select “PerlTidy: Tidy” and hit return.Though usage of PerlTidy is quite simple and PerlTidy will do its very best to Just Work™, most aspects can be configured to suite your needs.Ĭhecking the user setting “perltidy_cmd” for a (valid) user supplied perltidy location. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |