Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-23888

Json file are not indented properly

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Fixed
    • P3: Somewhat important
    • Qt Creator 12.0.0-beta1
    • Qt Creator 4.11.2, Qt Creator 4.15.0, Qt Creator 11.0.3
    • Editors
    • None
    • Linux/X11

    Description

      indentation of json files in Qt-Creator does not work properly. Indentation does not follow the contents' hierarchy.

      1. Opening a curly brace does not add the relative closing one as for cpp files.
      2. A carriage return after an opened curly brace should indent with an additional tab

      E.g. current

      {
      "foo" : "bar"

      desired:

      {
         "foo" : "bar"

       3. A double carriage return goes back to the first column of the file.

       4. Auto-indent hotkey is broken and completely removes any preexisting indentation.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            davschul David Schulz
            moia Maurizio Ingrassia
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes