xcode 10 和 11,没有高级语法着色 (c++)

xcode 10 and 11, no advanced syntax coloring (c++)

我一直在使用 xcode ide(v10.3,在 mac 10.14 上)进行 C++ 编程,发现语法 coloring/highlighting 是 非常简陋。

例如,我无法获得单独着色的函数参数。也不是运算符,也不是方括号,简单的东西,但不能做。没有属性(为此似乎)。

这是我的经历doing/trying:

  • configuring the syntax coloring in xcode->preferences->fonts and colors (see pic below)
  • selecting c++ in editor->syntax coloring (file type, language)
  • associating all .cpp files with "c++ source type"
  • associating all .cpp files with a specific compilation target
  • all project-level settings (eg. build settings) are set explicitly to c++


...真的,语法着色只有这些属性吗??

  • also... i installed xcode 11 beta5 and still only rudimentary syntax coloring.

我已经搜索了整整 2 天(因为害怕因为问了一个离题或非常愚蠢的问题而被激怒)但没有找到解决方案。

一些发现的讨论让我相信确实存在一个解决方案......包括 "doing everything right"(正如一些人所建议的,我尝试删除定义文件夹,但没有用,查看了 .xccolortheme 和DTDs PropertyList 并且在其中都没有找到合适的属性,安装了额外的颜色主题等),其他人让我相信 xcode 根本不会像 eclipse 那样提供 ide "advanced" 语法着色, vs 代码等...

所以我真的很困惑,xcode 被一百万(?)开发人员使用,当然它 必须 有 "advanced" 语法着色,出于像许多其他 ide 一样的盒子和万无一失。你能帮我么? link 一些傻瓜式操作方法将非常受欢迎。非常感谢。

这些是 Xcode 的唯一设置。正如您所看到的,他们可能不会在 Xcode 11.

中更改它