Share code snippets
What’s it handy for?
Working with computer programmers means they’ll want to discuss and debate the best ways to write code, and for that, they’ll need a way to share code snippets. Here’s how you can do that in Slack.
Sharing code snippets is necessary for:
- Discussing best practices for coding
- Finding and fixing bugs in your software
- Offering suggestions and improvements
How to share code snippets in Slack
- Click the Shortcut icon and select Create a code or text snippet from the menu.
- Paste your code snippet in the form and select the programming language from the drop-down menu. You can optionally give it a title and add a message explaining the snippet to others in the channel.
- You can use threads to organize improvements, suggestions, or changes with others.
Also worth checking out
Slack’s built-in code snippets offer basic support for sharing code but apps like Cacher offer improved versions, while Github offers an array of options. Sober is another app for Slack and calls up code from your Github files in Slack directly.