Turn on QML Language Server

QML Language Server offers code completion and issues warnings for QML. Qt Extension for VS Code supports QML Language Server from Qt 6.8.0, and later. You can check for QML Language Server updates and download the latest version.

To turn on QML Language Server:

  1. Go to Command Palette, and select Qt: Open Qt Settings.
  2. Go to Qt Qml Configuration, and select Run qmlls when activating an extension.

Check for updates

To install the latest QML Language Server version, go to Command Palette, and then select Qt: Check for QML Language Server update.

If Qt Extension for VS Code finds a newer version of QML Language Server, it offers to install it. You can also go to Command Palette, and then select Qt: Download the most recent QML Language Server language server.

Set QML Language Server location

To use QML Language Server when you develop with an older Qt version than Qt 6.8.0, set the path to QML Language Server from Qt 6.8.0 or later in Settings.

Configure QML Language Server output

To collect trace output from QML Language Server, go to Settings, and then select an option in Handle LSP trace.

To show verbose output from QML Language Server, go to Settings, and then select Run qmlls with –verbose option.

Restart QML Language Server

To restart QML Language Server, go to Command Palette, and then select Qt: Restart QML Language Server.

See also Qt settings.

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.