PerlNavigator icon indicating copy to clipboard operation
PerlNavigator copied to clipboard

Please provide documentation how to use perltidy in Visual Studio Code

Open horshack opened this issue 4 months ago • 3 comments

I try to format my perl-code with perltidy in Visual Studio Code. This can be done because mentioned in

https://github.com/bscan/PerlNavigator/

Currently Implemented Features: Code formatting via Perl::Tidy

Ok, but how can I do this? I tried it with the VSCode extension "Perl Simple" described in https://stackoverflow.com/questions/79089661/how-to-use-perltidy-to-reformat-code-in-visual-studio-code/79093098#79093098 like this:

+++ VSCode has a beautifier way for every kind of file.

A VSCode extension must get installed to use it. I installed the extension: Simple Perl. After that I highlighted some perl code in some perl file. Right-click - Menue: Format selection. The code gets formatted. +++

I tried the same with PerlNavigator, but this changes nothing in the code. perltidy seems not to get called.

Could you please describe in

https://github.com/bscan/PerlNavigator/

how I can reformat code in Visual Studio Code with the extension PerlNavigator?

horshack avatar Oct 16 '24 08:10 horshack