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

Change color for key -> value strings in json files

    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

        1. image-2020-05-27-15-54-23-821.png
          34 kB
          Christian Lenz
        2. image-2020-05-27-15-52-30-392.png
          7 kB
          Christian Lenz
        3. image-2020-05-27-15-51-04-645.png
          39 kB
          Christian Lenz

        Activity

          People

            Unassigned Unassigned
            chrizzly Christian Lenz
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: