clion change default cache directory

clion vmoptions
intellij change default project directory
jetbrains
clion change home directory
intellij settings file location
clion settings file
pycharm cache location change
remove intellij cache mac

Currently, for linux operating systems, the cache and index folders for clion are defaulted to /home/.Clion12/. I am on an NFS and want the cache directory and indexing directories to point to my internal ssd. Where can I change this?


I just found the answer to this. In the bin directory where clion.sh is kept, there is an ideas.properties file. You can change the default location there.

Changing IDE default directories used for config, plugins, and , When you restore the default IDE settings, CLion backs up your configuration to a directory. You can always restore your settings from this� Default IDE directories By default, CLion stores user-specific files (configuration, caches, plugins, logs, and so on) in the user's home directory. However, you can change the location for storing those files, if necessary. The default IDE directories changed starting from CLion 2020.1.


As @StevenCombs said, the file idea.properties is in the same bin directory where clion.sh is found, and the variable is idea.system.path.

I set it up like this. First, on the command line I did:

sudo mkdir -p /var/cache/mlakata
sudo chown mlakata /var/cache/mlakata

And then in the ${clioninstall}/bin/idea.properties file, I added

idea.system.path=/var/cache/mlakata/CLion/system

CLion appears to populate the CLion/system directories under my personal cache directory.

Configure IDE Settings - Help, WebStorm (WebStorm starting from 7.0 version); PyCharm; AppCode; CLion; DataGrip; AndroidStudio; Rider. Was this article helpful? Clean system caches. Call File | Invalidate Caches/Restart from the main menu. In the Invalidate Caches dialog, choose to invalidate caches, restart CLion, or do both. note. Note that cache files are not deleted until CLion restarts.


The problem was solved for me after I have created an idea.properties file in ~/.Clion2019.2/config then populated it with:

# custom CLion properties
idea.config.path=/someFolder/my_work/clion_ws/.Clion2019.2/caches/trunk-config
idea.system.path=/someFolder/my_work/clion_ws/.Clion2019.2/caches/trunk-system
idea.plugins.path=/someFolder/my_work/clion_ws/.Clion2019.2/caches/trunk-plugins

After this, the cache is build in /someFolder, not flooding my home folder anymore.

Official support page for path parameters

Directories used by the IDE to store settings, caches, plugins and , Do not change JVM options in the default file, because it is replaced a portable installation or exclude caches from home directory backups,� Change Project Root. When you open a CMake project, CLion treats the location of the top CMakeLists.txt as the project root directory.When you create a new project, CLion also places the CMakeLists.txt file under the root.


Advanced configuration - Help, For example, you can set a particular CMake profile as default for all new Project settings are stored in the project directory as a set of XML� Updated July 17, 2020 14:53. Common cases when you may need to change the default locations of the IDE files: user profile drive runs out of space. disk is slow and you want to use faster HDD or SSD for caches. default user profile points to the UNC path unsupported by the IDE. home directory is on a network drive.


Project Settings - Help, Change Project Root Directory. Last modified: 08 May 2020. When you open a CMake project, CLion treats the location of the top CMakeLists.txt as the project� In CLion, you can use GCC and Clang compilers. On Windows, the provided environment ( Cygwin , MinGW , or Microsoft Visual C++ ) includes the compilers along with other tools. There are two ways of changing the compiler for your CMake project, either in the toolchain settings or in the CMake profile settings.


Change Project Root Directory - Help, Directories used by the IDE to store settings, caches, plugins and logs Follow ( WebStorm starting from 7.0 version); PyCharm; AppCode; CLion I would like to change the default directory under which projects are stored. Location of the IDE files depends on the operating system, product and version. 2020.1 and above versions 2019.3.x and below versions Should you need to change the defaults, refer to this documen