Skip to content

beautify property in qml files #1754

@jgirardet

Description

@jgirardet

Description

I'm not sure it could be covered by the tool.
I wanted to beautify qml files. Everything looks good except about var propeties

Input

The code looked like this before beautification:

TextField {
  id: control
  property var relativeX
  property real relativeY
  property int relativeY
}

Expected Output

The code should have looked like this after beautification:

TextField {
  id: control
  property var relativeX
  property real relativeY
  property int relativeY
}

Actual Output

The code actually looked like this after beautification:

TextField {
  id: control
  property
  var relativeX
  property real relativeY
  property int relativeY
}

It seems that only var property type is changed. I'm not sure it's a bug with javascript but it's one with qml files.

Environment

OS:

Settings

{
  "indent_size": "2",
  "indent_char": " ",
  "max_preserve_newlines": "2",
  "preserve_newlines": true,
  "keep_array_indentation": true,
  "break_chained_methods": false,
  "indent_scripts": "normal",
  "brace_style": "collapse",
  "space_before_conditional": true,
  "unescape_strings": false,
  "jslint_happy": false,
  "end_with_newline": false,
  "wrap_line_length": "80",
  "indent_inner_html": false,
  "comma_first": false,
  "e4x": false,
  "indent_empty_lines": false
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions