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

Change color for key -> value strings in json files

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 11.3
    • None
    • javascript - JSON
    • None

    Description

      If you open the package.json file or any other file with just strings, you see one color. In my case strings are are all green. That means, the keys of the JSON file are green and the values also. See my screenshot (image-2020-05-27-15-51-04-645.png).

      This is not really readable in my opinion and I know that in JS files, if you use a JS object, it will be handled different. See my screenshot: image-2020-05-27-15-52-30-392.png. So you can see that "blau" which is the key, will be handled with the key color, which is quite nice. So in a json file, it should be handled the same. Different color for key and value. Also inside the options I just can change the color for strings and the preview also shows me that keys are handled the same.

      See my screenshot how VS Code handles it image-2020-05-27-15-54-23-821.png. It also colors the quotes in the same color as the key.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            chrizzly Christian Lenz

            Dates

              Created:
              Updated:

              Slack

                Issue deployment