DEV Community

Cover image for GitHub Slash Commands!
Leonardo Montini for This is Learning

Posted on โ€ข Originally published at leonardomontini.dev

32 3 5 4 4

GitHub Slash Commands!

Wait, what? Slash commands are available on GitHub?

I recorded a two minutes video to showcase how it works:


Just open up a text editor, it can be a new issue, a new pull request or even a comment and type / to see all the available commands.

A list will appear, and you can start typing to filter them. The currently available commands are:

  • /code: Inserts a Markdown code block. You choose the language.
  • /details: Inserts a collapsible detail area. You choose the title and content.
  • /saved-replies: Inserts a saved reply. You choose from the saved replies for your user account. If you add %cursor% to your saved reply, the slash command will place the cursor in that location.
  • /table: Inserts a Markdown table. You choose the number of columns and rows.
  • /template: Shows all of the templates in the repository. You choose the template to insert. This slash command will work for issue templates and a pull request template.

There's also a /tasklist command which inserts a tasklist and only works in an issue description, however this one is not available for everyone yet.

Learn more on the official docs: https://docs.github.com/en/issues/tracking-your-work-with-issues/about-slash-commands


Thanks for reading this article, this was a short one but I hope you found it interesting!

I recently launched my Discord server to talk about Open Source and Web Development, feel free to join: https://discord.gg/bqwyEa6We6

Do you like my content? You might consider subscribing to my YouTube channel! It means a lot to me โค๏ธ
You can find it here:
YouTube

Feel free to follow me to get notified when new articles are out ;)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

๐Ÿ‘‹ Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay