CLion 2016.3 Help

Configuring File Size Limit

By default, the maximum C/C++ source/header file length in CLion is limited to 500 000 characters. If that limit is exceeded, all the code insight features, such as code completion and syntax highlighting are disabled. In this case the IDE notifies you about the current configured limit and the actual file length.

To configure the new file length limit, do one of the following:

  1. To configure the file size limit in the Maximum FIle Size dialog:
    • Click the link in the upper right corner of the IDE notification:
      /help/img/idea/2016.3/cl_fileTooLong.png
    • In the dialog that opens, specify the file length limit:
      /help/img/idea/2016.3/cl_fileNewLength.png
    • Press OK to proceed.
      Note, that the IDE rebuilds the project's symbols upon that action.
  2. To configure the file size limit using the Registry:
    • On the main menu, choose Help | Find Action or press Ctrl+Shift+A.
    • In the dialog box that opens, type Registry and press Enter.
      /help/img/idea/2016.3/cl_findAction.png
    • In the Key column of dialog that appears, find the cidr.max.intellisense.file.length parameter and specify the desired file size limit in the Value field. Click Close to proceed.
      /help/img/idea/2016.3/cl_newFileLengthRegistry.png
      Note: in that case you need to invalidate project symbols manually by calling File | Invalidate Caches | Restart.
Last modified: 29 March 2017