如何在 VS2017 中为 .cmake 文件启用 Intellisense

How to enable Intellisense for .cmake files in VS2017

据此 post VS2017 支持 CMakeLists.txt 以及扩展名为 .cmake 的文件的颜色突出显示。在我的项目中,Intellisense 没有扫描和突出显示 .cmake 文件。是否有需要为此设置的设置?

关闭并重新打开 VS2017 后出现着色