Highlights
- Share code snippets with your team
- Recommend changes to code directly from chat
- Sync your changes with source control directly from chat
Send code snippets
Inline Code
Keyboard shortcuts
Keyboard shortcuts
Type the
`
symbol followed by the code you want to send.`
symbol followed by the code you want to send. Close the inline code by typing the `
symbol again.
Code Blocks
Keyboard shortcuts
Keyboard shortcuts
Type the
```
symbol followed by the code you want to send.```
symbol followed by the code you want to send. Close the code block by typing the ```
symbol again.
After typing the ```
symbol, you can also specify the language of the code block - note that Dimension will attempt to automatically detect the language of the code block if not explicitly specified.
You can specify the language for the a code block like so: ```js
- this will highlight the code block with the JavaScript language.
Recommend changes
Recommend changes to code shared by others directly from chat.Keyboard shortcuts
Keyboard shortcuts
Hover over the code snippet you want to recommend changes to and use
S
to recommend changes.Sync with source control
If you’re discussing code that is stored in a GitHub repository linked to the realm, you can sync recommended changes made to the code snippet with your source control system. You will be able to select which recommendations you want to incorporate into the final code snippet that will be pushed to your source control system. Finally, click the repository push button on the top right of the channel to push the changes to your source control system. You can also expand the diff to view the final code snippet that will be pushed to your source control system.You will not be able to sync changes with source control if:
- You do not have write access to the repository, or
- There is a merge conflict between the recommendations selected