vscode 配置构建、调试QT项目

  1. 背景是已经安装好了QT和QT相关的所有依赖包 https://mp.csdn.net/mp_blog/creation/editor/142974086

  2. 配置环境变量

找不到或者忘记在哪里可以使用指令查询

3.插件安装Qt Support、 Qt tools、Qt UI等

Cmake、Cmake Tools 等

C/C++等

settings.json 配置

此部分是根据一些报错进行配置更新的

vscode:插件报错:_unable to determine what cmake generator to use. p-CSDN博客

javascript 复制代码
{
  "workbench.colorTheme": "Default Dark Modern",
  "git.autofetch": true,
  "settingsSync.ignoredSettings": [],
  "editor.tabSize": 2,
  "eslint.format.enable": true,
  "javascript.updateImportsOnFileMove.enabled": "always",
  "liveServer.settings.donotShowInfoMsg": true,
  "javascript.format.enable": false,
  "js/ts.implicitProjectConfig.target": "ESNext",
  "editor.codeActionsOnSave": {},
  "editor.detectIndentation": false,
  "[vue]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[typescript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[dart]": {
    "editor.formatOnSave": false,
    "editor.formatOnType": true,
    "editor.rulers": [80],
    "editor.selectionHighlight": false,
    "editor.suggestSelection": "first",
    "editor.tabCompletion": "onlySnippets",
    "editor.wordBasedSuggestions": "off"
  },
  "editor.fontLigatures": false,
  "window.zoomLevel": 2,
  "cssrem.rootFontSize": 37.5,
  "git.confirmSync": false,
  "cmake.generator": "MinGW Makefiles",
  "cmake.pinnedCommands": [
    "workbench.action.tasks.configureTaskRunner",
    "workbench.action.tasks.runTask"
  ],
  "cmake.options.statusBarVisibility": "visible",
  "cmake.cmakePath": "C:\\Users\\Administrator\\Desktop\\qtServer\\Tools\\CMake_64\\bin\\cmake.exe",
  "qt-support.qtInstallDirectories": [],
  "cmake.additionalKits": [
    "C:\\Users\\Administrator\\AppData\\Local\\qt-support\\qt-kits.json"
  ],
  "C_Cpp.intelliSenseEngine": "disabled"
}

点击下图左下角,选择Qt 6.7.3....

开启构建,成功构建 ,几个调试、构建操作

相关推荐
滴_咕噜咕噜18 分钟前
C#基础总结:常用的数据结构
开发语言·数据结构·c#
martian66518 分钟前
【Java高级篇】——第16篇:高性能Java应用优化与调优
java·开发语言·jvm
许苑向上1 小时前
Java八股文(下)
java·开发语言
菜鸟一枚在这1 小时前
深入解析设计模式之单例模式
开发语言·javascript·单例模式
独孤求败Ace1 小时前
第44天:Web开发-JavaEE应用&反射机制&类加载器&利用链&成员变量&构造方法&抽象方法
java·开发语言
计算机-秋大田1 小时前
基于Spring Boot的农产品智慧物流系统设计与实现(LW+源码+讲解)
java·开发语言·spring boot·后端·spring·课程设计
matlabgoodboy1 小时前
Matlab代编电气仿真电力电子电机控制自动化新能源微电网储能能量
开发语言·matlab·自动化
镰圈量化2 小时前
当电脑上有几个python版本Vscode选择特定版本python
开发语言·vscode·python
背太阳的牧羊人2 小时前
RAG检索中使用一个 长上下文重排序器(Long Context Reorder) 对检索到的文档进行进一步的处理和排序,优化输出顺序
开发语言·人工智能·python·langchain·rag
ITPUB-微风2 小时前
美团MTSQL特性解析:技术深度与应用广度的完美结合
java·服务器·开发语言