> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/open-source/use-harness-open-source/gitspaces/ides/clion.md).

# CLion

With **CLion** IDE support, Harness CDE enables seamless and efficient remote development in your Gitspaces with your IDE. This integration leverages [**JetBrains Gateway**](https://www.jetbrains.com/remote-development/gateway/) to establish a direct remote connection with CLion, eliminating the need for any prior setup.

This guide provides a step-by-step walkthrough to help you use CLion IDE with your Gitspaces. Let’s get started!

![](/files/5QOHeIc7fxCQckIi8NWa)

### Before you begin <a href="#pre-requisites" id="pre-requisites"></a>

#### Install JetBrains Gateway <a href="#install-jetbrains-gateway" id="install-jetbrains-gateway"></a>

Before starting out, ensure that [JetBrains Gateway](https://www.jetbrains.com/remote-development/gateway/) is installed on your device.

JetBrains Gateway is a lightweight desktop application that enables you to work remotely with JetBrains IDEs (including Clion) without downloading the full IDE. It connects to a remote server, downloads necessary backend components, and opens your project in a JetBrains client.

#### Recommended Gitspace Configuration <a href="#recommended-gitspace-configuration" id="recommended-gitspace-configuration"></a>

{% hint style="info" %}
The following Gitspace requirements are optional but highly recommended for the best and most efficient experience when using Gitspaces in **CLion**. You can refer to the [JetBrains guide](https://www.jetbrains.com/help/idea/prerequisites.html) here for detailed information on system requirements for remote development.
{% endhint %}

**Recommended Requirements**

To ensure optimal performance while connecting to your Gitspace in CLion IDE, your Gitspace should meet the following specifications:

* **Processor**: Minimum of **4 cores** (vCPUs) with either x86\_64 or arm64 architecture.
* **Memory**: At least **8 GB** RAM.
* **Storage**: At least **10 GB** of available disk space.

{% hint style="warning" %}
If your Gitspace does not meet the recommended requirements, the following warning may appear during your Clion setup. You can choose to create a new Gitspace that adheres to the recommended specifications or proceed with your existing configuration.
{% endhint %}

![](/files/yUUdllyLKoOyMKOfpUAL)

**Configuring your Gitspace**

To meet the recommended specifications, select the **"Large"** machine type while configuring your Gitspace in the Harness UI. This option provides:

* **Processor**: 4 cores (CPUs)
* **Memory**: 32 GB RAM
* **Storage**: 30 GB Disk Size

![](/files/CDZjxiwZez70eCHmq6ii)

### Getting started with CLion IDE <a href="#getting-started-with-clion-ide" id="getting-started-with-clion-ide"></a>

Follow these steps to get started with integrating CLion IDE into your Gitspaces workflow:

#### Create a Gitspace <a href="#create-a-gitspace" id="create-a-gitspace"></a>

1. Navigate to the **Harness UI** and [create a new Gitspace](/open-source/use-harness-open-source/gitspaces/get-started/quickstart.md#creating-a-gitspace) for your project repository.
2. Select **"CLion"** as the IDE during Gitspace creation. ![](/files/tDi4QCeaDF9Ujv4ZUfVg)
3. Add your SSH key and configure the required Gitspace specifications.

{% hint style="info" %}
For optimal performance, it is recommended to use the **"Large"** Gitspace machine type. Refer to the "Recommended Gitspace Configuration" section for detailed requirements.
{% endhint %}

4. Click **"Create Gitspace"**.

#### Open the Gitspace in CLion <a href="#open-the-gitspace-in-clion" id="open-the-gitspace-in-clion"></a>

1. Once the Gitspace is created and running, click on the **"Open JetBrains Gateway"** button.

![](/files/Q0MrsmZ2KBDtDampthYO)

2. A prompt will appear requesting permission to open **JetBrains Gateway** and establish a connection with the remote server. Click **"Open JetBrains Gateway"**. ![](/files/cx7s9DDYYqRycQwxgXkO)

#### Connect to the Remote Server <a href="#connect-to-the-remote-server" id="connect-to-the-remote-server"></a>

You will be redirected to **JetBrains Gateway**, where you will be prompted to connect and establish an SSH connection. Click **"Check Connection and Continue"** to begin the setup process. This setup process will download the necessary files and tools required for your CLion environment.

![](/files/ieeVyJzy8QmGhiUNuAqy)

{% hint style="warning" %}
In case your Gitspace does not meet the recommended requirements, you may receive the following warning during the above setup. You can either create a new Gitspace to align with the recommended specifications or continue with your current configuration.
{% endhint %}

!\[]\(../../../.gitbook/assets/warning-intellij.jpg)

#### Setup Complete <a href="#setup-complete" id="setup-complete"></a>

Once the setup completes, your Gitspace will be successfully connected to CLion IDE. Congratulations! You are now ready to work on your Gitspace directly within CLion IDE.
