Skip to content

Latest commit

 

History

History
39 lines (23 loc) · 1.66 KB

README.md

File metadata and controls

39 lines (23 loc) · 1.66 KB

QML Format

A Visual Studio Code extension to beautify Qt QML files.

Visual Studio Marketplace Version GitHub Workflow Status (branch) License

Features

This extension calls qmlformat command to automatically format your QML files in accordance with the QML Coding Conventions.

Formatting demo

Requirements

You must have the qmlformat command installed on your development environment.

This utility was added to the Qt Quick module starting with Qt 5.15.

Settings

If desired, you can optionally configure some parameters:

{
    // You can specify the path toward the "qmlformat" executable,
    // if it's not available by default in your PATH.
    "qmlFormat.command": "/usr/lib/qt6/bin/qmlformat",

    // You can specify additional arguments that will be passed
    // to the "qmlformat" command while formatting a file.
    "qmlFormat.extraArguments": ["--normalize"]
}