How use Qt in Visual Studio Code?

Viewed 44988

How do I use Qt in Visual Stuidio Code operating system Linux Mint 18?

Marketplace doesnt exist extension for Qt. Maybe anyone knows more!

UPD. I meant that by type Qt AddIn

4 Answers

The methods for adding Qt headers to the cpptools extension have changed since the last answer. Options for doing so now include:

  1. Automatically adding a found Qt header path by clicking on the light bulb above an IntelliSense error and selecting Add to "includePaths"...

  2. Manually adding the Qt header paths to the settings UI, from the command palette, via C/Cpp: Edit Configurations (UI)

  3. Manually adding the Qt header paths to the settings JSON file, from the command palette, via C/Cpp: Edit Configurations (JSON)

More info in this page of the new documentation.

Apart from the C++ extension (cpptools) mentioned in other answers, there are also extensions for Qt Quick that add support for the QML language. The QML Syntax/Tools extension adds syntax highlighting, auto-completion, and also allows to run and test your Qt Quick app using QML Hot Reload: Visual Studio Code Extension for Qt Quick

Related