Christian Lenz created NETBEANS-1771:
----------------------------------------

             Summary: Read only characters should be possible inside Editor
                 Key: NETBEANS-1771
                 URL: https://issues.apache.org/jira/browse/NETBEANS-1771
             Project: NetBeans
          Issue Type: Improvement
          Components: editor - Painting & Printing
    Affects Versions: Next
            Reporter: Christian Lenz


In some Editors/IDEs like VS Code and the JetBrains family, it is possible that 
plugins or core functionalities, can print characters/words/whatever into the 
editor like showing the parameter names, when you call a function or debugging 
stuff right after the variables/functions or git annotations or complexity 
indices and and and. This is possible while adding stuff, which is only printed 
out to the editor as read only and not as normal text. Here are some links for 
what I mean: 
VS Code - Show complexity: 
https://code.visualstudio.com/assets/blogs/2017/02/12/codemetrics.png (Between 
Line 23/24)
It will not add a new line, it is part of line 24 and read only, sometimes 
clickable, depends of what the functionality brings.

VS Code - Git Information: 
https://code.visualstudio.com/assets/blogs/2017/02/12/preview_gitlens.gif (More 
complex example, but this ticket is not to implement such a feature, it is to 
implement the read only stuff to print stuff into the editor, which will not 
affect the Lines and is only one string which is not possible to edit.)

IntelliJ Debugging Info:
https://d3nmt5vlzunoa1.cloudfront.net/webstorm/files/2018/01/evaluate-expression.png
 (On line 9, 10, 11 and 14, you can see the the debug info is right after the 
EOL)

IntelliJ parameter hints: 
https://d3nmt5vlzunoa1.cloudfront.net/idea/files/2016/12/idea_2017_1_groovy_parameter_hints.png
 (You can see the parameter names as hints)

Everything is optional and can be done separately, but to add those 
functionality or other stuff, it is needed to add a global editor feature to 
add such hints/informations into the editor. This opens a lot more possibilites 
for developers.

Maybe NetBeans still has such support, but I couldn't find it. I only found non 
printable characters, which will added like UTF8 code with a specific font.


Cheers

Chris



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

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

Reply via email to