IDE Services 2024.4 Help

Code With Me Enterprise User Guide

Code With Me Enterprise enables you to share your locally running project with anyone. You can also use it for real-time collaboration, editing code, sharing a server, and running a debugging session.

A shared session involves the interaction between a host and one or more guests.

You can start a session with one of the following basic scenarios:

  • You can do pair-programming, in this case you share your IDE with a single participant and either use the Full sync mode, or follow each other and collaborate on different parts of code. Unlike classic pair-programming where developers share a single screen and a keyboard, you can work independently and achieve the goal faster.

  • You can have a teacher-student scenario where you have many participants who follow you. Let's say you need to explain a problem and show your team members different parts of your project. You can achieve that with the Force Others to Follow You mode.

  • You can do simultaneous multi editing of your code with other participants. In this case, participants can quickly change the code and even work on other files of the project at the same time. However, there is a limitation on how many participants can actively type together. The limit is 5, and if it's reached, the IDE will display a popup suggesting to wait. Additionally, it might slow down the performance.

Get started as a host

You can create a link to invite other participants to collaborate on your code using your computer as the host. You can also start a debugging session, share its state and actions.

Create a session

  1. On the main toolbar, click the Code With Me icon.

    Alternatively, from the main menu, select Tools | Code With Me.

  2. In the list that opens, click Start Session.

    Start Session
  3. In the Code With Me: Start Session dialog, configure the access permissions for your guests and click Start Session.

    Code With Me Permissions dialog

    The IDE creates a link that you can send to the guests you want to invite to collaborate. To copy the invitation link, click the Code With Me icon, and select Copy Session Link.

  4. Send the link to guests. When a guest clicks the link, the IDE displays a popup suggesting either to accept or decline the guest. On this step, you should verify the codes are equal for your guest and you.

    Accept Guest
  5. Click Accept. The guest joins your session and you can start collaborating. You will see an additional caret at your editor and an icon on the main toolbar indicating the active guest.

Terminate an active session

  1. On the main toolbar, click the Code With Me icon.

  2. From the list that opens, select End Session.

    End Session

    IntelliJ IDEA terminates the session and disables all the guests. The link also gets disabled, and you need to create a new one to start another session.

Access the host settings

  1. On the main toolbar, click the Code With Me icon.

  2. Click the Browse button and from the list that opens, select Settings.

Permissions

You as a host can configure what new guests may or may not access on your machine. For example, specify whether the guests can edit files, use the terminal, and execute code. You can also enable or disable the voice call option. The permissions can be configured for the whole session or for specific guests in the session.

At any time during the session, guests can request additional permissions from the host.

Add permissions

  1. On the main toolbar, click the Code With Me icon and select Permissions.

    When you create a session, the dialog with permissions options is opened automatically.

  2. In the Code With Me: Start Session dialog, specify the following options:

    • Read-only: select this permission for guests to have a view-only access for files, terminal, and run actions. However, guests can still copy and paste code from the editor.

      Read only permissions
    • Edit files: select this permission if you want your guests to only edit files, but not to access the terminal, or execute code.

      Edit files permissions

      You can exclude some files from accessing.

      Click Manage hidden files... under the Files field and in the Hidden Files dialog add files that you want to exclude from access and click OK.

    • Full access: select this permission to give your guests full access to all files, terminal, and run actions on your machine.

      Full access permissions
    • Custom: select this permission to customize access for guests to files, terminal, and run actions. When you switch to Custom permissions, the options associated with them will repeat choices from the previously selected permissions. You can change them accordingly.

      Custom permissions
  3. The Start call option is enabled by default, disable it to deactivate voice calls in the session.

  4. After you configured permissions, click Start Session if you are in a process of creating a session. If you edit the permissions, click Apply.

Audio and video calls

When you collaborate with your peers, you can chat, use audio, video calls in the session, enable screen sharing, and forward your port.

When a session starts, the Join Call icon becomes available on the main toolbar, and you can use it to initiate a voice call.

During the session, you can manage the voice calls, camera and screen sharing.

Manage calls from main toolbar

  • Click the More icon on the main toolbar to open a list of available options and select the one you need.

    Call Options

    You can mute or unmute the microphone, enable or disable screen sharing, camera, and open the Call tab in the Code With Me tool window.

You can also control the call, camera and screen sharing in the Code With Me tool window.

Manage voice calls from Code With Me tool window

  1. On the right toolbar, click Code With Me to open the Code With Me tool window.

    the Code With Me tool window
  2. On the Call tab, click the appropriate icon.

    the Call options

Manage call actions via Customize Toolbar

You can access call actions that can be added to the main toolbar. You can also change icons for toolbar actions and remove actions from the toolbar.

  1. Right-click the main toolbar and select Customize Toolbar.

  2. From the available options, select Main Toolbar | Right | Code With Me.

  3. Open the Code With Me Call Actions node and select the action to which you want to make changes. Click OK to save the changes.

    .

Share your screen with guests

  1. On the main toolbar, click the More icon.

    Alternatively, open the Code With Me tool window.

  2. Click the Share Screen icon.

    Screen sharing

    Your screen gets shared with other participants in the session. If you want to stop the screen sharing, click the same icon again.

If you work on a web or database project, you can give access to a port on your local machine to guests during a session.

Forward a port

  1. Click Code With Me to open the Code With Me tool window.

  2. In the Code With Me tool window, click the Port Forwarding tab.

  3. Click the Add icon to add a port.

  4. In the Port Forwarding dialog add your port, select the protocol and click OK.

    the Port Forwarding dialog

    On the guest side, the port is added to the Port Forwarding tab in the Code With Me tool window and guests can access it.

Get started as a guest

As a guest, you can follow a host during the created session and edit the code on which the host is working. You can also follow other session participants and get access to other parts of the project. Moreover, you can run and debug code on the host's machine, and work in the Terminal tool window if you have permissions to do so.

Accept an invitation

  1. Click the received link.

  2. On the page that opens in a browser, make sure you have Toolbox App installed on your machine and click Join Session.

    Join Session
  3. The IDE lightweight client application will be downloaded at the run time.

    You don't need to have the IDE installed for the lightweight version to work.

  4. Once it is installed, the IDE displays a notification suggesting that you wait until the host accepts your request to join the session. When you are accepted, you are able to join the session. When the host’s project gets opened, you will see the active file in the editor.

    At this point, you can customize the guest IDE to make your working process more convenient. You can change themes, view modes, and so on. The changes you make will only affect your guest IDE.

Leave a session

  1. On the main toolbar, click the Code With Me icon.

  2. From the list that opens, select Leave Session.

    Leave Session

    The session is terminated and the Code With Me welcome screen is displayed. You can quickly return to the same session without any accepting process from the host using the same link.

    JetBrains Client welcome screen

Guest Code With Me setup locations

After you set up your work with Code With Me as a guest, you can check the following locations to see where the Code With Me distribution, logs, settings, and caches are located in your file system:

  • The Code With Me logs:

    ~/Library/Logs/JetBrains/JetBrainsClient<plugin_version>

    %LOCALAPPDATA%\JetBrains\JetBrainsClient<plugin_version>\log

    ~/.cache/JetBrains/JetBrainsClient<plugin_version>/log

  • The Code With Me caches:

    ~/Library/Caches/JetBrains/JetBrainsClient<plugin_version>

    %LOCALAPPDATA%\JetBrains\JetBrainsClient<plugin_version>

    ~/.cache/JetBrains/JetBrainsClient<plugin_version>

  • The Code With Me settings:

    ~/Library/Application\ Support/JetBrains/JetBrainsClient<plugin_version>

    %APPDATA%\Roaming\JetBrains\JetBrainsClient<plugin_version>

    ~/.config/JetBrains/JetBrainsClient<plugin_version>

  • The Code With Me distributions and JetBrains runtime:

    ~/Library/Caches/JetBrains/JetBrainsClientDist

    ~/Library/Caches/JetBrains/CodeWithMeClientDist

    %LOCALAPPDATA%\JetBrains\JetBrainsClientDist

    %LOCALAPPDATA%\JetBrains\CodeWithMeClientDist

    ~/.cache/JetBrains/JetBrainsClientDist

    ~/.cache/JetBrains/CodeWithMeClientDist

If the Code With Me session was created using IDE Services, the installation paths' locations for JetBrains Client are as follows:

~/Library/Application Support/JetBrains/Toolbox/internal-tools/JetBrains Client

%LOCALAPPDATA%\JetBrains\Toolbox\internal-tools\JetBrains Client

~/.local/share/JetBrains/Toolbox/internal-tools/JetBrains Client

Work in a shared session

Once a shared session is created and all invited participants are accepted, the editor will contain the additional carets, the main toolbar will display the guests' icons, and the Code With Me tool window with the voice calls and the chat support becomes available.

Joined session: editor and the main toolbar

In a shared session you can try different things such as move around the host's project independently, follow other participants, use the terminal tool window, make code edits, request additional permissions from a host and so on.

Follow a participant

  1. On the main toolbar, click the Code With Me icon.

  2. From the list that opens, select the name of the participant you want to follow and select Follow.

    Alternatively, on the main toolbar, click the needed participant's icon.

    IntelliJ IDEA places your caret at top of the participant's caret and places a frame around the editor with a small label displaying the name of the participant you are following.

    Following other participant

    Click Stop next to the name to unfollow the participant. You can always click Resume to follow the same participant once again.

    You can have more than one participant following other participants. When one of the followers decides to switch focus, it will not affect the main host. This is helpful in the teacher-students use case.

Force all others to follow you

  1. On the main toolbar, click the Code With Me icon.

  2. From the list that opens, select your profile, and Make Everyone Follow You.

    Make Everyone Follow You

    In this case, all the guest carets are placed on top of the host, and the focus will switch if the main caret is placed in the other files of the project.

    Make Everyone to Follow You: editor

    At any time, a participant can stop following the main caret.

Jump to other participant

  1. On the main toolbar, click the Code With Me icon.

  2. From the list that opens, click a name of the participant and select Jump To.

    Alternatively, on the main toolbar, right-click the participant's icon and select the same option.

    Jump to Other Participant

    The caret is placed on the line where the selected guest's caret is located. This might be helpful if you want to quickly locate a certain participant's caret.

Use the pair coding mode

  1. On the main toolbar, click the Code With Me icon.

  2. From the list that opens, choose the name of a participant and select Pair Coding Mode.

    Alternatively, on the main toolbar, right-click the participant's icon and select the same option.

    Pair Coding Mode

    The caret is placed on top of the host's caret. IntelliJ IDEA places a frame around both the host's editor and the guest's editor indicating that the pair-coding mode is on.

    Full Sync Mode

    The focus stays within the host caret even if the caret is placed in other parts of the project. This mode is usually used in the pair-programming scenario.

Terminate a shared session for a specific user

  1. On the main toolbar, click the Code With Me icon.

  2. From the list that opens, click a name of the participant for whom you want to terminate the session and select Remove Guest.

    Alternatively, on the main toolbar right-click the participant's icon and select the same option.

    Remove Guest

    IntelliJ IDEA terminates the session for the selected participant and displays a notification on the guest's side. IntelliJ IDEA closes the guest project and returns the guest to the Code With Me welcome screen.

    Welcome Screen

    If the guest wants to return to the shared session, they need to wait for the host permission to join.

Collect logs for the current guest

  1. On the Code With Me welcome screen, click the More Options icon next to Settings.

  2. From the list that opens, select Collect Logs and Diagnostic Data.

    Collect and Client Logs

    IntelliJ IDEA creates a log file on your local machine. The log file contains the current project's filenames, parts of code, and detailed information on guest's activity such as caret movements, typed symbols, invoked actions, files opened, file paths, and so on.

Collect all logs in the session

  1. On the main toolbar, click the Code With Me icon.

  2. In the list that opens, click the More button and select Submit an Issue.

    Submit an Issue
  3. In the dialog that opens, click OK to approve the data collection.

    the Sensitive Data dialog

    Once the log details are collected, they are automatically attached to the newly created issue in the YouTrack system.

Request permissions

By default, you, as a guest, are given the Read-only permissions. That means you can't edit files, add the code, or work in the terminal during the session. IDE Services displays a proper notification every time you try to something for which you don't have permissions. You can click the link in the notification to request additional permissions from the host.

Request edit files permissions

  1. Start editing a file. When a notification appears, click the Request to edit files link.

    Permissions notification

    As a result, the host receives a notification and can either grant the permissions or decline them.

    Host notification
  2. If the permissions are granted, a guest can edit files and the guest permissions are updated on the host side. The host can change permissions at any time during the session. From the host main menu, select a name of the guest and Permissions from the list of options and in the Edit Permissions dialog, update permissions accordingly.

    Permissions dialog

In order to work with the terminal, run the application, or debug code, you need the full access permissions.

Request full access permissions

  1. When you try to access actions that require the full access permissions, the appropriate notification will appear. For example, the terminal access permission.

    Terminal permissions

    Click the Request full access link.

    As a result, the host receives a notification and can either grant the permissions or decline them.

  2. If permissions are granted, a tab with the shared terminal is opened and a guest can use it. A host in this case has two terminal tabs: one private and the other one shared.

    The host can change permissions at any time during the session. From the host main menu, select a name of the guest and Permissions from the list of options and in the Edit Permissions dialog, update permissions accordingly.

Change the session name or URL of the session server

You can change the default name of the created session using the Code With Me settings.

You can also change the URL of a lobby server used for a session. It might be useful to switch to your own company's server for security purposes.

Access the Code With Me settings

  1. In the main menu, open Settings - Tools - Code With Me

  2. In the User name field enter a new name for your session. The session name will be changed on the restart. Clicking Use System Name will reset the session name to the default one.

    You can change the default server URL, in the Lobby server URL field.

  3. Click OK to save the changes.

Last modified: 23 September 2024