CLion 2018.2 Help

Objective-C/C++ Support

CLion enables you to work with Objective-C/C++ files as comprehensively and productively as with code written in C or C++.

You can open, create and add Objective-C/C++ files with .m and .mm extensions into your CMake project, and use all of the features for code inspection, assistance and refactoring that CLion provides. Live and code templates are also available for Objective-C/C++ code. For more details, see CLion Features in Different Languages.

To configure Objective-C/C++ specific settings, use the following pages of the Settings/Preferences dialog (Ctrl+Alt+S):

  • Editor | Inspections | Objective-C
  • Editor | File and Code Templates (and select the Code tab)

  • Editor | Live Templates

To enable Code style and Color schemes for Objective-C/C++, you need to set the clion.enable.objc.settings key in the Registry. For this, go to Help | Find Action in the main menu (or press Ctrl+Shift+A) and start typing Registry:

cl callRegistry
Select Registry from the list of suggested options and type clion.enable.objc.settings for CLion to find the corresponding key, then select the checkbox:
cl objC regfield

As a result, Color Schemes and Code Styles pages of the Settings/Preferences dialog now cover Objective-C/C++:

cl objC colorschemes
cl objC codestyle

Last modified: 27 November 2018