Through Cloud Code, you can add new projects to
[Cloud Source Repositories](https://docs.cloud.google.com/tools/cloud-repositories/docs) and check out
existing projects.

> [!NOTE]
> **Note:** The following IDEs support this feature:
>
> - IntelliJ IDEA - Ultimate
> - IntelliJ IDEA - Community
> - [Other IntelliJ Platform-based IDEs](https://docs.cloud.google.com/code/docs/intellij/ides)

## Before you begin

## Upload source code

Upload your code to Cloud Source Repositories from Cloud Code:

1. Open the project you want to add to Cloud Source Repositories.

2. Click **VCS** \> **Upload to Cloud Source Repositories** . Alternatively, in
   the menu, navigate to **Tools** \> **Google Cloud Code** \>
   **Upload to Cloud Source Repositories**.

3. In the dialog, use the drop down menu to select the **Cloud Project**
   associated with your project.

4. Use the drop down menu to select your **Cloud Repository**.

   1. If you don't have a repository, or if you want to create a new one, click
      **Create a new cloud repository**.

      Cloud Code opens a new browser window to the
      Google Cloud console so that you can create the new repository.
5. By default, Cloud Code sets the **Remote Name** . You can enter
   a different name in the **New Remote Name** field.

6. Click **Upload**.

## Development

For other operations such as committing and pushing new changes, navigate to
**VCS** \> **VCS Operations Popup**.

## Browse source files

After uploading your source code, browse the code in the Google Cloud console:

1. In the [Google Cloud console](https://console.cloud.google.com/), select the project that
   contains your source code.

2. In the search bar, search for `Cloud Source Repositories`.

## Check out source code

Check out source code from Cloud Source Repositories:

1. Choose **VCS \> Get from Version Control** . Alternatively, go to the welcome dialog and click **Get from VSC**.
2. Select **Google Cloud** from the **Version Control** drop-down and click **Clone**.
3. In the **Clone from Google Cloud** dialog, select the **Cloud Project** associated with your project.
4. Select your **Cloud Repository**.
5. Select the **Parent Directory**.
6. Enter the **Directory Name**.
7. Click **Clone**.

You can alternatively check out from the **Welcome** screen by selecting
**Get from Version Control** and choosing **Google Cloud** from the
Version Control drop-down. This displays the **Clone from Google Cloud** dialog.

## Get support

To submit feedback or report an issue in your IntelliJ IDE, go to **Tools** \> **Cloud Code** \> **Help / About** \> **Submit
feedback or report an issue** to report an issue on [GitHub](https://github.com/GoogleCloudPlatform/cloud-code-intellij/issues).