Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-1771

Read only characters should be possible inside Editor

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Next
    • None
    • None

    Description

      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

      Attachments

        Activity

          People

            jlahoda Jan Lahoda
            chrizzly Christian Lenz
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: