Delgan / qml-format

A VS Code extension to beautify QML files

Home Page:https://marketplace.visualstudio.com/items?itemName=delgan.qml-format

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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"]
}

About

A VS Code extension to beautify QML files

https://marketplace.visualstudio.com/items?itemName=delgan.qml-format

License:MIT License


Languages

Language:TypeScript 70.8%Language:Dockerfile 28.8%Language:Shell 0.4%