IDE - Quick-Help Tooltip Info (like Javadoc in e.g. Eclipse)

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

IDE - Quick-Help Tooltip Info (like Javadoc in e.g. Eclipse)

Post by c4s »

Those of you who already worked with Eclipse or similar advanced IDEs definitely know what I'm talking about: example screenshot, another one

In my opinion it's one of the most important features currently missing in the PB IDE (apart from refactoring tools). For those of you who are not familiar with it: Think of it as a way more advanced "status bar quick-help text" that even shows descriptions for each parameter and -- most importantly -- can be easily defined for your very own procedures.

In PB this quick-help feature would basically analyze the source code and pick out information that directly belongs to each procedure (could be extended to macro, variable, constant definitions too). Then whenever the mouse hovers over that procedure name (anywhere in the code!) a small window opens up (kind of like auto-complete) and shows the defined relevant information in a consistently formatted way. It could look like this:

Code: Select all

; This procedure does this and that.
; @param var Description of first parameter
; @param string Description of second parameter
; @return #True if successful, else #False
; @source <a href="http://www.purebasic.fr/english/viewtopic.php?f=3&t=54831">PB Forum</a>
; @version 2015-10-10, 1.1.0
Procedure MyProc(var.i, string.s)
  ; [...]
EndProcedure

MyProc(123, "test")  ; Hovering over 'MyProc' opens a mini-help with the above info
Edit 1 (2013-08-01):
I would even like to write such a tool just for myself (if not everyone likes the annotation style mentioned above). Though, first I would have to write a PB parser to get all the required code information... feature request (IDE - Access to internal code information)

Edit 2 (2015-10-10):
Improved wording of title and extended description.
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: IDE - Quick-Help Tooltip Info (like Javadoc in e.g. Ecli

Post by c4s »

Honestly I'm kind of astonished that there are no comments or "+1" so far. :shock:

I think it's actually a very important missing feature. Maybe I wasn't clear enough in my initial post. So I just updated the title of this feature request and improved the description.
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: IDE - Quick-Help Tooltip Info (like Javadoc in e.g. Ecli

Post by ts-soft »

+1

and a parsing-tool, to make a simple html-help from comments for libs/modules and so on.
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
RSBasic
Moderator
Moderator
Posts: 1218
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: IDE - Quick-Help Tooltip Info (like Javadoc in e.g. Ecli

Post by RSBasic »

Image
Image
User avatar
skywalk
Addict
Addict
Posts: 4003
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: IDE - Quick-Help Tooltip Info (like Javadoc in e.g. Ecli

Post by skywalk »

+1
Enabling plug-ins would give the user even more capability. And the PB team would not be the bottleneck for every small productivity feature request.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: IDE - Quick-Help Tooltip Info (like Javadoc in e.g. Ecli

Post by c4s »

Great to see that more of you are interested in this very handy quick-help feature. Hopefully it helps attracting the PB team's attention to it (or ways to enable it, see below) rather soon than later.

skywalk wrote:Enabling plug-ins would give the user even more capability. And the PB team would not be the bottleneck for every small productivity feature request.
True. Too bad that freak seemed to already have something similar ready for us (4.5 years ago) but decided against it. Please consider it again because the possibilities would be endless!

Just picking out some requests regarding the IDE that could probably be implemented by custom plug-ins: This quick-help feature, documentation creation, refactoring tools, mini map, context-sensitive completion, clutter-free fullscreen mode, extended "jump to definition", code cleanup (e.g. marking unused variable names, also here) or a dependency analyzer (just came up with it, could be a separate request, right? ;)).
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
User avatar
NicTheQuick
Addict
Addict
Posts: 1227
Joined: Sun Jun 22, 2003 7:43 pm
Location: Germany, Saarbrücken
Contact:

Re: IDE - Quick-Help Tooltip Info (like Javadoc in e.g. Ecli

Post by NicTheQuick »

+1
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
Golfy
User
User
Posts: 97
Joined: Wed Mar 21, 2012 6:10 pm

Re: IDE - Quick-Help Tooltip Info (like Javadoc in e.g. Ecli

Post by Golfy »

As I use Purebasic to help my students to learn an easy language, and I've to learn JAVA to them too... it would be a great way to learn them to add comments !!!
+1 (x infinite)
s0ula55a551n
User
User
Posts: 25
Joined: Fri Jan 01, 2016 5:55 pm

Re: IDE - Quick-Help Tooltip Info (like Javadoc in e.g. Ecli

Post by s0ula55a551n »

Would like the auto complete to show you the Params for that function or procedure like eclipse does more
User avatar
skywalk
Addict
Addict
Posts: 4003
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: IDE - Quick-Help Tooltip Info (like Javadoc in e.g. Ecli

Post by skywalk »

A small but appreciated step would be to show the Procedure return type in the context help at the bottom of the ide. :wink:
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Re: IDE - Quick-Help Tooltip Info (like Javadoc in e.g. Ecli

Post by eddy »

+1
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
Taz
User
User
Posts: 52
Joined: Sat Jan 20, 2018 5:28 pm
Location: Germany

Re: IDE - Quick-Help Tooltip Info (like Javadoc in e.g. Ecli

Post by Taz »

+1
Post Reply