Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ElijahLynn/02736853ec3db6219e041995f4b04a2b to your computer and use it in GitHub Desktop.

Select an option

Save ElijahLynn/02736853ec3db6219e041995f4b04a2b to your computer and use it in GitHub Desktop.

How to format strings as code w/keyboard shortcuts in various tools:

Slack

  • inline - cmd + shift + c
  • block - cmd + shift + e
  • select any code block, triple click it

GitHub issues and comments - w/Refined GitHub Extension

  • inline - double click to highlight the string, then press ` to wrap in backticks
  • block - ??

Notion

  • inline - cmd + e
  • block - type /code (cannot convert existing text into a block, only create an empty block)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment