DataGrip 2024.1 Help

Directories used by the IDE

By default, DataGrip stores user-specific files for each IDE instance (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.

Change the location of IDE directories

You can move the default IDE directories, for example, if the user profile drive runs out of space or it is located on a slow disk, if the home directory is encrypted (slowing down the IDE) or is located on a network drive, if you want to create a portable installation or exclude caches from home directory backups, and so on.

  1. Go to Help | Edit Custom Properties.

  2. Set the property that corresponds to the necessary directory:

    Property

    Path to

    idea.config.path

    Configuration directory

    idea.system.path

    System directory

    idea.plugins.path

    Plugins directory

    idea.log.path

    Logs directory

    Specify paths with forward slashes /, including Windows paths (for example, C:/idea/system).

    You can insert any other properties as variables. For example, use ${user.home} (standard Java system property) to specify paths relative to the user's home directory:

    idea.config.path=${user.home}/MyIdeaConfiguration
  3. After you restart DataGrip, it will use the new location of the corresponding directory.

Clean up old IDE directories

Every time you install a new major version of DataGrip, it uses a new set of IDE directories and automatically deletes the caches and logs directories for older versions of the IDE that have not been updated in the last 180 days. The configuration and plugins directories will remain forever, unless you remove them manually.

  1. Go to Help | Delete Leftover IDE Directories.

  2. In the Delete Leftover IDE Storage Directories dialog, select the versions of the IDE that you are not planning to use and click Delete.

Configuration directory

The DataGrip configuration directory contains user-defined IDE settings, such as keymaps, color schemes, custom VM options, platform properties, and so on.

Syntax

%APPDATA%\JetBrains\<product><version>

Example

C:\Users\JohnS\AppData\Roaming\JetBrains\DataGrip2024.1

Syntax

~/Library/Application Support/JetBrains/<product><version>

Example

~/Library/Application Support/JetBrains/DataGrip2024.1

Syntax

~/.config/JetBrains/<product><version>

Example

~/.config/JetBrains/DataGrip2024.1

You can change the location of the DataGrip configuration directory using the idea.config.path property.

To share your personal IDE settings, copy the files from the configuration directory to the corresponding folders on another DataGrip installation. Make sure that DataGrip is not running to avoid erasing the copied files when you shut down the IDE. Depending on which settings you modified, the DataGrip configuration directory can contain the following subfolders:

Directory

User settings

codestyles

Customized code style schemes

colors

Customized editor color and font schemes

fileTemplates

User-defined file templates

filetypes

User-defined file types

inspection

Code inspection profiles

keymaps

Customized keyboard shortcuts

options

Various options, for example, feature usage statistics and macros

scratches

Scratch files and buffers

settingsSync

IDE settings shared using Settings Sync

templates

User-defined live templates

tools

Configuration files for user-defined external tools

System directory

The DataGrip system directory contains caches and local history files.

Syntax

%LOCALAPPDATA%\JetBrains\<product><version>

Example

C:\Users\JohnS\AppData\Local\JetBrains\DataGrip2024.1

Syntax

~/Library/Caches/JetBrains/<product><version>

Example

~/Library/Caches/JetBrains/DataGrip2024.1

Syntax

~/.cache/JetBrains/<product><version>

Example

~/.cache/JetBrains/DataGrip2024.1

You can change the location of the DataGrip system directory using the idea.system.path property.

Plugins directory

The DataGrip plugins directory contains user-installed plugins.

Syntax

%APPDATA%\JetBrains\<product><version>\plugins

Example

C:\Users\JohnS\AppData\Roaming\JetBrains\DataGrip2024.1\plugins

Syntax

~/Library/Application Support/JetBrains/<product><version>/plugins

Example

~/Library/Application Support/JetBrains/DataGrip2024.1/plugins

Syntax

~/.local/share/JetBrains/<product><version>

Example

~/.local/share/JetBrains/DataGrip2024.1

You can change the location of the DataGrip plugins directory using the idea.plugins.path property.

Logs directory

The DataGrip logs directory contains product logs and thread dumps.

Syntax

%LOCALAPPDATA%\JetBrains\<product><version>\log

Example

C:\Users\JohnS\AppData\Local\JetBrains\DataGrip2024.1\log

Syntax

~/Library/Logs/JetBrains/<product><version>

Example

~/Library/Logs/JetBrains/DataGrip2024.1

Syntax

~/.cache/JetBrains/<product><version>/log

Example

~/.cache/JetBrains/DataGrip2024.1/log

You can change the location of the DataGrip logs directory using the idea.log.path property.

Project directory

The DataGrip project directory contains project settings.

Syntax

%HOMEPATH%\.<product><version>\config\projects

Example

C:\Users\JohnS\.DataGrip2024.1\config\projects

Syntax

~/Library/Application Support/<product><version>

Example

~/Library/Application Support/DataGrip2024.1

Syntax

~/.<product><version>/config/plugins

Example

~/.DataGrip2024.1/config/plugins

Define a project directory

You can define a default project directory for new projects. The project directory becomes preselected in File | Open and File | New | Project.

  1. In settings Ctrl+Alt+S, navigate to Appearance & Behavior | System Settings.

  2. In the Default project directory field, specify a path to the directory where you want to store your projects by default.

  3. Click OK.

Setting a default directory
Last modified: 11 April 2024