文章目录

问题

使用Cmake时 Qtcreator没语法高亮提示

原因

这其实算是Qtcreator的一个小BUG, QtCreator检索文件会从CmakeList.txtadd_xxxx文件中检索文件信息, 如果add_xxxx中没有这个文件, 那么就没有语法高亮提示

解决方法

  1. 确保add_xxxx中引用到了所需要的文件
  2. 删除源代码目录下的build文件夹
  3. 打开QtCreator重新构建
    之后就可以看到高亮正常显示了

Qtcreator 没有语法提示

相关文章:

  • 2021-09-27
  • 2022-12-23
  • 2021-11-01
  • 2021-11-21
  • 2022-12-23
  • 2021-05-04
  • 2021-10-26
猜你喜欢
  • 2022-01-21
  • 2022-12-23
  • 2021-04-23
  • 2022-01-14
  • 2022-01-19
  • 2021-09-06
相关资源
相似解决方案