Using Pumble

Send a Code Snippet

2 min read
Milos Milosavljevic

This feature is available on all plans.

With code snippets, you can send parts of code, configuration files, or log files to users in your workspace.

Here’s how you can do this:

  1. Click the + icon in the message editor
  2. Select Text snippet
    Add code snippet
  3. Enter snippet title (this is optional)
  4. Select snippet style
  5. Paste the code into the Content section
  6. Click on Create snippet
    snippet code modal

Users can click the collapse/expand button to change the number of lines displayed in the snippet.

You can add a new snippet by using the keyboard shortcut Ctrl/CMD + Shift + Enter.

Edit snippet #

You can always edit the snippet and change the code inside it. To do this, hover over the snippet and click on the pencil icon.

This will open a modal where you can customize the snippet.

Share snippet #

You can share code snippets directly with other workspace users. Here’s how you can do this:

  1. Hover over a snippet
  2. Click on the share icon
  3. Select users
  4. Write your message (optional)
  5. Click Share
    share code snippet

Copy snippet to clipboard #

If you want to paste the code snippet somewhere, you can copy it to your clipboard by clicking on the copy to clipboard icon.

Download snippet #

You can save code snippets directly to your computer by clicking on the download button. The files will be saved in a .txt format.

Delete snippet #

To remove a code snippet from your workspace, follow these steps:

  1. Hover over a snippet
  2. Click on the three dots
  3. Click on Delete file
  4. Click on Delete to confirm the action
    Three dots snippet

Was this article helpful?

Thank you! If you’d like a member of our support team to respond to you, please drop us a note at support@pumble.com