sublime text 2 - display jsdocs while typing

12

I installed the JsDocs package and use it to document my code. ATM I'm using SublimeCodeIntel with Alt+Click to jump to the documentation, but this is quite annoying, especially when you just want to look up one little detail and then have to scroll back.

Assuming I've got a function foo like this:

/**
 * foo does some multiplication magic
 * @param  {Number} bar var number 1
 * @param  {Number} baz var number 2
 * @return {Number}     this equals bar*baz
 */
function foo(bar, baz) {
    return bar*baz;
}

Is there any package/plugin that displays the documentation of the function foo and its params and its return value when I type foo( (without scrolling to the documentation)?

Peter

Posted 2012-09-30T11:25:38.313

Reputation: 271

That would be something... but nothing out there yet ey?! – Dominik – 2014-07-14T00:33:55.843

This would be immensely useful... – Laoujin – 2015-01-30T12:43:00.800

@Laoujin I'm not too familiar with this idea; is it similar to intellisense - intelligent code completion where it shows what attributes you could use. Or is it something else? – Raystafarian – 2015-02-02T14:04:26.653

Something that when you call a function you can see the JsDoc without going to the function implementation. Ideally this would be some sort of tooltip. So yes, intellisense.. – Laoujin – 2015-02-02T14:50:29.447

This would be fantastic. I am guessing this feature still does not exist? – theblang – 2017-03-27T21:54:23.267

Answers

1

I think sublimeCodeIntel already does this by default.

please refer to Using section of the README, the feature you described is manual code intelligence.

Achmad Mahardi

Posted 2012-09-30T11:25:38.313

Reputation: 61

Unfortunately this is not the case. "Manual Code Intelligence" is apparently limited to displaying name(function): It only recognizes it as a function but comments (or even parameters) are not shown. – Laoujin – 2015-02-05T12:51:58.427