mbien commented on PR #4522:
URL: https://github.com/apache/netbeans/pull/4522#issuecomment-1223983771

   just a thought:
   
   If the IDE is already changing the text, why not put the type where it 
belongs? A direct way of helping with readability of code which overuses `var` 
could be to replace `var` with the actual type and draw it in a different 
color. Could be a toggle button somewhere or hotkey. It would have to switch 
back to var if the text cursor is over it which complicates things 
unfortunately I have to admit.
   
   This wouldn't change the syntax of the language and wouldn't encourage 
overuse of var / change of formatting / create IDE dependence.
   
   Maybe there is a way to solve those use cases differently so that NB doesn't 
have to enable inline hints by default (even though the feature itself is 
probably required anyway since some users might want to have feature parity 
with other IDEs)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

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

Reply via email to