CLion警告This file does belong to any project target; code insight features might not work properly
在CLion项目中新建一个C语言源文件(test2.c),警告 “This file does not belong to any project target;这个警告是没有相关运行配置导致的。其实随便写一个main函数,运行一下,警告自然消失。或者可以从运行配置那里新建一个运行配置,配置名称和源文件均写这个源文件的名称即可。点击Apply-OK,即可。