CLion Template Reset

已回答

My CLion "File and Code Templates" seemed to have reset.

For example, upon adding a new C++ header file, the `$USER_NAME` has defaulted back to the computer's session name. The `$INCLUDE_GUARD` variable seems to have defaulted to just `PROJECT_`. When I try to set my own variables and use those instead, it only seemed to randomly work.

I tried solving this problem by modifying the default `C Header File` and the default includes... However, when I try to create an Include file, it says that the file cannot be found.

To further my problems, it seems that new files that are now added to this project do not follow the same C++ include scope as the rest. That is, a file that was already in the directory has scope to the standard C++ libraries while the new file does not (unless it is added as an include to the already made file).

I have already tried the standard uninstall/reinstall, along with the "Invalidate caches/restart" command. This leads me to believe that there may have been hidden files/settings that may have been moved/deleted somewhere.

Thanks

0

Hi! Please try performing complete reinstallation. To do this please uninstall CLion and delete contents of directories described in this article. You can backup them beforehand and save in some other location if you need. But that's important that the directories listed in the Help are empty at the time of the new installation.

0
Avatar
Permanently deleted user

Hi Anna,

I uninstalled CLion, removed directories, removed my project and started with a fresh copy from the repository, and installed CLion without importing any settings. It looks like it didn't change anything.

However, I noticed that if the project name (in the CMake file) is not in the top directory, CLion appears to ignore the project name elsewhere. Is there a way to set the user's name that CLion uses?

Thanks

0

To avoid misunderstanding, please provide the detailed issue description and a simple sample project with which the issue can be reproduced to clion-support at jetbrains.com. Thanks!

0

请先登录再写评论。