From the course: Practical GitHub Project Management and Collaboration
Slash commands and emojis - GitHub Tutorial
From the course: Practical GitHub Project Management and Collaboration
Slash commands and emojis
- [Instructor] Software development is hard enough as it is. So GitHub has some additional features that can help make your issues a bit easier and more fun to work with. Now let's go ahead and edit this little comment that I made earlier, and I'll show you some of the features right here. Now the first one's called slash command. So if you've been wondering what this little thing does right here is creates or lets you access slash command. You can also just type in a slash, and it does the same thing. And you could see that it gives you a few options here for code blocks, details, save replies, or tables. And these are just shortcuts for creating things. So I'm going to choose code block. You can see that it gives you a list of syntaxes you can use. You can just go down through this, and I'm going to choose JavaScript, but notice that, what it's doing is just writing the markdown for a code block for you. Maybe here we can do document right, and then hello world just to show you. If we hit the preview button, you'd be able to see that it syntax highlights or colorize the code. It also gives you a super nice way of copying the code right next to the item right here. So, that is really great. Let's go ahead and go back to right, and show you some of the other ones. So if we hit this again, and we say the tails, notice that it's giving you a way of creating a box of the tails. And I'll just put Lorem Ipsum here for right now, and we'll hit the preview button, and notice that it gives you a way of taking a bunch of stuff and collapsing it down, so that you can create as many of those as you want and have a list of things that expand and collapse. Again, this is actually sort of regular HTML, so this is just a paragraph tag. Markdown does allow you to do some HTML in it. If you want to check what's allowed, just click right here on this markdown as we saw earlier. That's another useful sort of technique that you can use in your comments. Let's do another one. There's also a way of saving replies. So, if you can create these different replies that will automatically get pasted into your document, right? So, they're sort of like shortcuts to things that you want to say, and you can create those there in your settings. So let's see, in addition to that, so if I go save replies, if you don't have one, I think it gives you an option of going to your settings to find where they are. If not, let's just go ahead, and go to settings, and it may be under your own personal settings. And you can see right here under save replies, you can see the one that I created earlier. So, you can add little shortcuts like URLs to things or maybe your social media, and just very quickly add that to your project as you're typing that in. So, I'm going to hit the back button a few times just to get back here again. So, that is pretty cool. And again, you just type in this slash, and you'll get the list right here. There's another one called table that allows you to create a table really quickly. Again, this is just markdowns. So, let's choose three columns and five rows, and it's just going to create a markdown place where you can type in your table. So, I'm just going to hit update comment here, and you can see that it does create this cell. That extra message that was showing up there was a bug, but tables are really difficult to do in markdown. So, this is kind of a great way of getting started. And if your window right here is a little bit small, you can click on this corner thing right here, and make this window a little bit bigger. We're going to delete this. The last thing that you can use is emojis. Those are extremely common in software development projects. I think it's 'cause developers are sort of bored. It's really easy to add them. And what you do is you just add a colon, and then type in say maybe a heart. So maybe I want to do a heart here for JoJo, because that was some super fantastic suggestions. So I'll do a heart, and then you can choose it from the list, and then it will become a heart once you hit the update button. You can actually add emojis all over the place. You'll see them everywhere. You can add them in the titles of your issues. You can add them honestly just about anywhere you type things in. And it's amazingly common to see them even on very professional companies. So, don't worry that you're being too silly. Just have some fun with software development, and learn to use some of these additional shortcuts and enhancements to make your projects a little more fun.