You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Thomas Kellerer <sh...@gmx.net> on 2019/07/15 08:50:57 UTC

NetBeans 11.1 - "Show inline hints" question

I do love the new "Show inline hints" in NetBeans 11.1

I have noticed that the hints are only shown if a constant value is passed to the method call.
If the argument of a method is a variable (or uses one), then the hint is not shown.

An example of what I mean:

  String s = "foo"
  doSomething(s);

--> no parameter hint is shown for the above, however in the following case:

  doSomething("foo");

--> the parameter hint IS shown.

The hint is also NOT shown when the parameter uses constants and variables:

  doSomething(s + "bar");


Here is a screenshot of what I mean:

   https://i.imgur.com/z7hTVIU.png

Can this be changed somewhere?
So that in all three cases shown in the screenshot, the parameter hint is shown.


Regards
Thomas


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: NetBeans 11.1 - "Show inline hints" question

Posted by Thomas Kellerer <sh...@gmx.net>.
Neil C Smith schrieb am 15.07.2019 um 11:02:
> On Mon, 15 Jul 2019 at 09:51, Thomas Kellerer <sh...@gmx.net> wrote:
>> Can this be changed somewhere?
>> So that in all three cases shown in the screenshot, the parameter hint is shown.
>
> This feature is not fully complete yet, and was included in NB 11.1
> but off by default for this reason.  It will hopefully get further
> improvement as we head towards NB 12.0 LTS next year, where the plan
> as I understand it is to have it enabled by default (all this from PR
> discussion on it).
>
> I noticed the code for this is attached specifically to literals at
> the moment, which would explain the current behaviour.

OK, thanks for the feedback.

It's not a big thing, just would have been nice.

Thomas

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


Re: NetBeans 11.1 - "Show inline hints" question

Posted by Neil C Smith <ne...@apache.org>.
On Mon, 15 Jul 2019 at 09:51, Thomas Kellerer <sh...@gmx.net> wrote:
> Can this be changed somewhere?
> So that in all three cases shown in the screenshot, the parameter hint is shown.

This feature is not fully complete yet, and was included in NB 11.1
but off by default for this reason.  It will hopefully get further
improvement as we head towards NB 12.0 LTS next year, where the plan
as I understand it is to have it enabled by default (all this from PR
discussion on it).

I noticed the code for this is attached specifically to literals at
the moment, which would explain the current behaviour.

Best wishes,

Neil

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists