Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Qt ConfigureNew to Visual Studio Code? Get it now.
Qt Configure

Qt Configure

vector-wlc

|
91,132 installs
| (3) | Free
Generating configuration files for Qt project in VSCode
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

QtConfigurator README

Only Windows and Linux are supported

这不是 Qt 官方工具!!!x3

在 VSCode 中生成 Qt 项目配置文件,按下 F5 可独立运行调试 Qt 项目

Features

  • Command: QtConfigure : New Project 生成 Qt 项目配置文件

  • Command: QtConfigure : Set Qt Dir 选择 Qt 安装目录,注意是安装目录,而不是 Qt 套件目录, 该扩展会根据 Qt 安装路径搜索相应的 Qt 套件以及编译器

  • Command: QtConfigure : Open Qt Designer 打开 Qt Designer,该命令仅在生成 Qt Ui 项目后才能使用

  • Command: QtConfigure : Open Qt Assistant 打开 Qt Assistant

CMake

  • 需要配合 VSCode CMake 扩展使用

QMake

  • Build Debug: 在编译运行 Debug 时,请将./.vscode/launch.json 中的有关内容修改如下:"program": "${workspaceRoot}/build/debug/${workspaceRootFolderName}.exe" "preLaunchTask": "debug"

  • Build Release: 在编译运行 Release 时,请将./.vscode/launch.json 中的有关内容修改如下 :"program": "${workspaceRoot}/build/release/${workspaceRootFolderName}.exe" "preLaunchTask": "release"

Requirements

  • Qt
  • ms-vscode.cpptools
  • CMake
  • ms-vscode.cmake-tools
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft