My Project View in CLion lists not only C++ files and headers but also built libraries (.la) and object files (.o). I don't want to see them. What can I do to make them not appear in the list?
3 Answers
In the menu go to Files/Settings
: in the dialog box chose the item File types
. The last field in the dialog is Ignored files and folders
. It contains semicolon-separated patterns that will be applied and, if the file matches one of these, ignored. Wildcards like *
are allowed.
So just add ;*.la;*.o
at the end.

- 2,515
- 2
- 30
- 36
-
It seems it can't help with nested expressions: e.g. `bin/*.so` is forbidden because of `/` character. – Patrizio Bertoni Mar 29 '22 at 12:59
You can also define a so-called "Scope" by clicking on the gear icon at the right of the project view's header bar -> "Edit scopes". This will present you with a nice ui to define your filter. Afterwards, click on the triangle next to "Project" in the project view header bar and select your newly created scope.

- 683
- 5
- 14
If you are using version control(git) you can also add the file extensions to the .gitignore
file and Clion should hide those files as well. If you're not using version control then adding the file extensions to the Clion Ignored files and folders
list.

- 88
- 1
- 12
-
Keep in mind that you can't hide ".gitignore" like this, even if it's in .gitignore. – MegaWidget Jun 21 '17 at 02:20