4.5 KiB
IDEs
The following desktop IDEs have been tested with Coder, though any IDE with SSH support should work:
- VS Code (with Remote - SSH extension)
- JetBrains (with
Gateway
installed)
- IntelliJ IDEA
- CLion
- GoLand
- PyCharm
- Rider
- RubyMine
- WebStorm
SSH configuration
Before proceeding, run
coder login <accessURL>
if you haven't already to authenticate the CLI with the web UI and your workspaces.
To access Coder via SSH, run the following in the terminal:
coder config-ssh
Run
coder config-ssh --diff
if you'd like to see the changes that will be made before proceeding.
Confirm that you want to continue by typing yes and pressing enter. If successful, you'll see the following message:
You should now be able to ssh into your workspace.
For example, try running:
$ ssh coder.<workspaceName>
Your workspace is now accessible via ssh coder.<workspace_name>
(e.g.,
ssh coder.myEnv
if your workspace is named myEnv
).
VS Code Remote
Once you've configured SSH, you can work on projects from your local copy of VS Code, connected to your Coder workspace for compute, etc.
-
Open VS Code locally.
-
Install the Remote - SSH extension.
-
In VS Code's left-hand nav bar, click Remote Explorer and right-click on a workspace to connect.
VS Code in the browser
You must have Docker Desktop running for this template to work.
Coder offers a sample template that includes code-server.
To use:
- Start Coder:
coder server --dev
- Open a new terminal and run:
coder templates init
-
Select the Develop code-server in Docker option when prompted.
-
Navigate into your new folder and create your sample template:
cd code-server-docker && coder templates create
Follow the prompts that appear in the terminal.
- Create your workspace:
coder create --template="docker-code-server" [workspace name]
- Log into Coder's Web UI, and open your workspace. Then, click code-server to launch VS Code in a new browser window.
JetBrains Gateway with SSH
If your image includes a JetBrains IDE and you've set up SSH access to Coder, you can use JetBrains Gateway to run a local JetBrains IDE connected to your Coder workspace.
See the Docker sample template for an example of how to refer to images in your template.
Please note that:
- Your Coder workspace must be running, and Gateway needs compute resources, so monitor your resource usage on the Coder dashboard and adjust accordingly.
- If you use a premium JetBrains IDE (e.g., GoLand, IntelliJ IDEA Ultimate), you will still need a license to use it remotely with Coder.
-
Download and install JetBrains Toolbox. Locate JetBrains Gateway in the Toolbox list and click Install.
-
Open JetBrains Gateway and click Connect via SSH within the Run the IDE Remotely section.
-
Click the small gear icon to the right of the Connection field, then the + button on the next screen to create a new configuration.
-
Enter your Coder workspace alias target in Host (e.g.,
coder.<yourWorkspaceName>
),22
in Port,coder
in User name, and change Authentication Type to OpenSSH config and authentication agent. Leave the local port field blank. Click Test Connection. If the test is successful, click Ok at the bottom to proceed. -
With your created configuration in the Connection chosen in the drop-down field, click Check Connection and Continue.
-
Select a JetBrains IDE from the IDE version drop-down (make sure that you choose the IDE included in your image), then click the folder icon and select the
/home/coder
directory in your Coder workspace. Click Download and Start IDE to proceed. -
During this installation step, Gateway downloads the IDE and a JetBrains client. This may take a couple of minutes.
-
When your IDE download is complete, JetBrains will prompt you for your license. When done, you'll be able to use your IDE.