2024-09-07 22:13:45 +02:00
[](https://code.mp)
2024-09-16 03:46:57 +02:00
[](https://github.com/hexedtech/codemp/actions)
[](https://marketplace.visualstudio.com/items?itemName=hexedtech.codemp)
[](https://marketplace.visualstudio.com/items?itemName=hexedtech.codemp)
[](https://gitter.im/hexedtech/codemp)
2022-09-14 12:13:48 +02:00
2024-09-06 12:37:28 +02:00
> `codemp` is a **collaborative** text editing solution to work remotely.
It seamlessly integrates in your editor providing remote cursors and instant text synchronization,
as well as a remote virtual workspace for you and your team.
# codemp-vscode
This is the reference codemp [vscode ](https://code.visualstudio.com/ ) plugin maintained by [hexedtech ](https://hexed.technology )
# installation
2024-09-16 04:29:41 +02:00
**Install from [Visual Studio Code Marketplace ](https://marketplace.visualstudio.com/items?itemName=hexedtech.codemp ): `ext install hexedtech.codemp` **
2024-09-06 16:17:03 +02:00
2024-09-16 03:46:57 +02:00
Automatically built artifacts are available for download (to logged-in GitHub users) under [our Workflows page ](https://github.com/hexedtech/codemp-vscode/actions/workflows/publish.yml ).
2024-09-06 16:17:03 +02:00
2024-09-16 03:46:57 +02:00
> [!IMPORTANT]
> Remember to configure your credentials after installing!
2024-09-06 16:17:03 +02:00
2024-09-16 03:46:57 +02:00
To connect to the main `code.mp` server, you [will need an account ](https://code.mp/signup ).
2024-09-06 12:37:28 +02:00
# usage
2024-09-16 03:46:57 +02:00
To use `codemp` , you should first join a workspace. From inside, it's possible to share local files or fetch remote files, always keeping them in sync.
> [!TIP]
> Your current workspace directory is used as root for `codemp` files, which are relative paths.
Most actions can be performed from the `codemp` sidebar with contextual buttons.
2024-09-06 12:37:28 +02:00
2024-09-16 03:46:57 +02:00
## commands
2024-09-06 12:37:28 +02:00
| command | description |
| --- | --- |
2024-09-16 03:46:57 +02:00
| `codemp.connect ` | connect to remote codemp server using configured credentials |
2024-09-06 12:37:28 +02:00
once connected, more commands become available:
| command | description |
| --- | --- |
| `codemp.join <workspace>` | will join requested workspace; starts processing cursors and users |
| `codemp.createWorkspace <workspace>` | will create a new workspace with given name |
| `codemp.listWorkspaces` | list all workspaces available to join |
2024-09-16 03:46:57 +02:00
| `codemp.activeWorkspaces` | list all workspaces currently active |
2024-10-27 22:41:29 +01:00
| `codemp.inviteToWorkspace <workspace> <user> ` | invite a remote user to a workspace you own |
2024-10-27 23:11:04 +01:00
| `codemp.deleteWorkspace` | delete a workspace |
2024-09-06 12:37:28 +02:00
after a workspace is joined, more commands become available:
| command | description |
| --- | --- |
2024-10-27 23:11:04 +01:00
| `codemp.leaveWorkspace <workspace>` | leave a currently active workspace |
2024-09-16 03:46:57 +02:00
| `codemp.attach <buffer>` | will fetch remote buffer and keep it in sync |
| `codemp.share` | will share current buffer and keep it in sync |
2024-09-06 12:37:28 +02:00
| `codemp.createBuffer <bufname>` | will create a new empty buffer in workspace |
| `codemp.listBuffers` | will list all available buffers in workspace |
2024-10-27 23:11:04 +01:00
| `codemp.detach <buffer>` | will detach from remote buffer |
| `codemp.deleteBuffer <buffer>` | will delete remote buffer |
2024-09-06 12:37:28 +02:00
| `codemp.sync` | forces resynchronization of current buffer |
2024-10-27 23:11:04 +01:00
| `codemp.jump` | jump to user's last cursor position |
2024-09-06 12:37:28 +02:00
2024-09-16 03:46:57 +02:00
some commands for the Tree View are also provided:
2024-09-06 12:37:28 +02:00
2024-09-16 03:46:57 +02:00
| command | description |
| --- | --- |
| `codemp.refresh` | redraws tree view |
| `codemp.focus` | focuses tree view |
2022-09-14 12:13:48 +02:00