Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Which IDE's show tooltips for Perl builtins?

by stevieb (Canon)
on Jul 26, 2022 at 14:33 UTC ( [id://11145752]=note: print w/replies, xml ) Need Help??


in reply to Which IDE's show tooltips for Perl builtins?

intelliJ does. Here's an image of intelliJ IDEA running with the Camelcade Perl5 plugin.

  • Comment on Re: Which IDE's show tooltips for Perl builtins?

Replies are listed 'Best First'.
Re^2: Which IDE's show tooltips for Perl builtins? (IntelliJ)
by LanX (Saint) on Jul 26, 2022 at 15:04 UTC
    Hi Stevie

    thanks for the screenshot, but it shows the whole perldoc in the popup, not a short usage info.

    I've updated the OP to make that clearer.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

      Installed IntelliJ Community Version and the Perl-Plugin which points to the CamelCade git-repo.

      Was a bit of a hassle to tell the editor/project to use the (preactivated) Portable Strawberry aka "System Perl", otherwise the modules were not indexed. IOW no defaulting to existing Perl.

      Typing Ctrl-Q "Quick Documentation" while over (not right after) a Perl symbol (here split ) showed the whole perldoc in a pop-up with scroll-bars.

      The IDE knows a feature "Quick definition" (Ctrl-Shift-I) which had no effect on split , similarly Ctrl-P and Alt-Q.

      Auto-completions listed arguments for just a small number of built-ins like say([$filehandle, @list]) but those args weren't included even that a help message suggested that pressing tab would help permutate. In this case - say - pressing Ctrl-P listed them again in a pop-up.

      There was an error message that Xsubs declaration file was missing, but regenerating it didn't help with the things described.

      Typing Ctrl-Shift-Space like in Notepad++ produced only a "No Suggestions" message.

      DISCLAIMER: First time user of this IDE, might have certainly missed obvious options.

      edit

      Code-Snippets are available, they are called "Live Templates" (Ctrl-J)

      Mostly for POD and Moose and those Perl standard statements known from Textmate and available in all IDEs.

      It has also some snippets for "special" syntax like do { }', like this two 'do are listed in the auto-completion list, chosing the template inserts do { ^ } with the cursor ^ inside the brackets.

      There is also a similar snippet sa for anonymous sub expanded to sub { ^ } but it's not listed in auto-completion when typing sub , even after a = ...!

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery

        Hi Rolf,

        Do you mind sharing how you got the editor/project to use the (preactivated) Portable Strawberry aka "System Perl". I am having this same issue. I am only able to use Perl plugin and point to my installed perl interpreter only after starting a project in the IDEA with the python interpreter and changing the interpreter to Perl mid project.

        Thanks!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11145752]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-19 19:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found