An open API service indexing awesome lists of open source software.

https://github.com/emellybmuniz/github-pro-tips


https://github.com/emellybmuniz/github-pro-tips

atalhos dicas education github github-tips notes shortcuts tips tips-and-tricks tricks truques

Last synced: about 16 hours ago
JSON representation

Awesome Lists containing this project

README

          

# πŸ’Ž GitHub Secrets You Need to Know

[πŸ‡ΊπŸ‡Έ English](./README.en.md) | [πŸ‡§πŸ‡· PortuguΓͺs](./README.md)

![GitHub License](https://img.shields.io/github/license/emellybmuniz/github-pro-tips)
![GitHub last commit](https://img.shields.io/github/last-commit/emellybmuniz/github-pro-tips)
![GitHub Stars](https://img.shields.io/github/stars/emellybmuniz/github-pro-tips?style=social)

> A guide by @emellybmuniz with the best shortcuts and tricks to master your productivity on the platform.

## ⌨️ 1. Essential Shortcuts

* . (Period) β†’ Press `.` in any repository to open the **VS Code editor (github.dev)** instantly in your browser.
* > (Greater than) β†’ Opens github.dev in a **new browser tab** (keeping the current tab open).
* Cmd/Ctrl + K β†’ **Command Palette**. Navigate, search, and execute actions anywhere on GitHub:
* # (Issues/PRs)
* @ (Users)
* / (Files in the repository)

## 🧭 2. Navigation

* T β†’ **File Finder (Fuzzy Finder)**. Type the file name to find it quickly.
* W β†’ Quickly switch between **Branches**.
* S or / β†’ Focus the **Search bar**.
* ? β†’ Lists all **keyboard shortcuts** available for that specific view.
* J β†’ Move selection **down** (in lists of issues, PRs, notifications).
* K β†’ Move selection **up** (in lists).
* X β†’ **Toggle selection** (check/uncheck item).
* O or Enter β†’ **Open** selected item.
* Esc β†’ Close dialog or hovercard.

## πŸ’» 3. Code Editing in github.dev

When you open the web editor (by pressing .), you have access to several editing shortcuts:

### Basic Editing

* Ctrl/Cmd + X β†’ **Cut entire line** (copies and deletes).
* Ctrl/Cmd + Shift + K β†’ **Delete entire line** (without copying to clipboard).
* Ctrl/Cmd + C β†’ **Copy line** (without selection).
* Ctrl/Cmd + V β†’ **Paste**.
* Alt + ↑/↓ β†’ **Move line** up/down.
* Alt + Shift + ↑/↓ β†’ **Duplicate line** up/down.
* Ctrl/Cmd + / β†’ **Toggle line comment**.
* Ctrl/Cmd + Z β†’ **Undo**.
* Ctrl/Cmd + Y β†’ **Redo**.

### Markdown Formatting

* Ctrl/Cmd + B β†’ Insert Markdown formatting for **bold**.
* Ctrl/Cmd + I β†’ Insert Markdown formatting for *italic*.
* Ctrl/Cmd + K β†’ Insert Markdown formatting to create a [link](...).
* Ctrl/Cmd + Shift + 7 β†’ Ordered list.
* Ctrl/Cmd + Shift + 8 β†’ Unordered list.
* Ctrl/Cmd + Shift + . β†’ Blockquote.

### Search and Navigation

* Ctrl/Cmd + F β†’ **Find** in file.
* Ctrl/Cmd + G β†’ Find **next**.
* Ctrl/Cmd + Shift + G β†’ Find **previous**.
* Ctrl/Cmd + G β†’ **Go to specific line**.
* Ctrl/Cmd + S β†’ Save / Write commit message.
* Ctrl/Cmd + Shift + P (or F1) β†’ Open the **Command Palette** (access to all functions).

## 🧐 4. Code Review

* L β†’ Jump to a **specific Line**.
* Y β†’ Create a **Permalink** (permanent link to the exact code version).
* I β†’ **Show/Hide Comments** in Diffs and PRs.
* R β†’ (With text selected) **Quote the text** in a new comment.
* Shift + Click β†’ Select a **block of lines** (e.g., `#L18-L20`).
* B β†’ Open **Blame** view (see who last changed each line).
* A β†’ Show/hide annotations in diffs.
* E β†’ **Edit file** directly (opens edit tab).

## ⚑ 5. Agile Navigation (Go-to)

* G + C β†’ Go to **Code**.
* G + I β†’ Go to **Issues**.
* G + P β†’ Go to **Pull Requests**.
* G + D β†’ Go to **Homepage** (Dashboard).
* G + N β†’ Go to **Notifications**.
* G + B β†’ Go to **Projects** (repository).
* G + A β†’ Go to **Actions**.
* G + W β†’ Go to **Wiki**.
* G + G β†’ Go to **Discussions**.

## πŸ€– 6. GitHub Actions

* Ctrl/Cmd + Space β†’ Get **suggestions** in the workflow editor.
* G + F β†’ Go to the **workflow file**.
* Shift + T or T β†’ Toggle **timestamps** in logs.
* Shift + F or F β†’ Toggle **full screen** in logs.
* Esc β†’ Exit full screen logs.

## πŸ”” 7. Notifications

* E β†’ Mark as **done**.
* Shift + U β†’ Mark as **unread**.
* Shift + I β†’ Mark as **read**.
* Shift + M β†’ **Unsubscribe**.

## πŸ” 8. Code Search (Advanced Search)

GitHub has a powerful code search tool that lets you find exactly what you're looking for:

### Search Qualifiers

* `repo:user/repository` β†’ Limit search to a specific repository.
* `org:organization` β†’ Search across all repositories in an organization.
* `language:language` β†’ Filter by language (e.g., `language:python`).
* `path:path` β†’ Search in a specific path (e.g., `path:src/`).
* `symbol:name` β†’ Search for a symbol/function definition.
* `extension:ext` β†’ Filter by file extension.

### Boolean Operators

* `term1 AND term2` β†’ Both terms must be present.
* `term1 OR term2` β†’ At least one term must be present.
* `term1 NOT term2` β†’ Exclude results with term2.

### Regex Search

* Use `/your-regex/` for regular expression searches.
* Example: `/foo(bar|baz)/` finds "foobar" or "foobaz".

### Tips

* Use quotes to search for exact phrases: `"specific function"`.
* Combine qualifiers: `repo:user/repo language:python path:src/`.
* Access [https://cs.github.com](https://cs.github.com) for the new Code Search interface.

## πŸ”— 9. URL Tricks (Repositories)

* `github.com` β†’ `github.dev` β†’ Opens in the VS Code web editor.
* `github.com` β†’ `githubbox.com` β†’ Opens the repository in a sandbox (CodeSandbox).
* `.../pull/123` β†’ `.../pull/123.diff` β†’ Shows the Pull Request as a plain text `.diff` file.
* `.../pull/123` β†’ `.../pull/123.patch` β†’ Views the PR as a `.patch` file.

## πŸ‘€ 10. URL Tricks (Profiles and Feeds)

* `github.com/username.keys` β†’ Views the user's public SSH keys.
* `github.com/username.png` β†’ Direct link to the profile picture.
* `github.com/username.atom` β†’ RSS feed of the user's public activity.
* *Example:* `github.com/emellybmuniz.png`

## ✨ 11. Collaboration and Extras

* **Easter Egg:** Visit [api.github.com/octocat](https://api.github.com/octocat) to see the octocat mascot in ASCII art.
* **Blame View:** Click "Blame" within a file to see who last changed each line (or use the B shortcut).
* **Draft PRs:** Create Draft Pull Requests to collaborate without notifying the entire team.
* **Saved Replies:** Configure saved replies in Settings to speed up your code reviews (shortcut: Ctrl/Cmd + . + [number]).
* **Command Palette:** Use Ctrl/Cmd + K to quickly access actions without navigating menus.
* **File Tree:** In the new Code View, use the side file tree to easily navigate the repository structure.
* **Jump to Definition:** In over 10 languages, click on a symbol to automatically jump to its definition (no setup required).
* **Tab Navigation:** Use Ctrl/Cmd + 1-9 to switch between open tabs in the editor.

## πŸ€– 12. GitHub Copilot (Bonus)

If you use GitHub Copilot in github.dev or VS Code:

* Tab β†’ **Accept** suggestion.
* Alt/Option + ] β†’ **Next** suggestion.
* Alt/Option + [ β†’ **Previous** suggestion.
* Ctrl/Cmd + Enter β†’ Force suggestion generation / Open suggestions panel.
* Ctrl/Cmd + I β†’ Open **inline chat**.
* Esc β†’ **Dismiss** suggestion.
* Alt/Option + \ β†’ Trigger inline suggestion manually.

### Slash Commands in Copilot Chat

* `/fix` β†’ Automatically fix errors.
* `/explain` β†’ Explain selected code.
* `/tests` β†’ Generate unit tests.
* `/docs` β†’ Add/improve documentation.
* `/optimize` β†’ Suggest performance improvements.

⭐ **Liked this guide?** Leave a star on the repository to check it out later!

---

## πŸ“š References

This guide was created based on:

* Official GitHub Documentation
* GitHub Blog ([github.blog])(https://github.blog/)
* Developer communities ([Dev.to](https://dev.to/), [Reddit](https://www.reddit.com/), [Stack Overflow](https://stackoverflow.com/))
* Practical user experience
* GitHub Code Search ([cs.github.com](https://github.com/search?type=code))
* VS Code and github.dev Documentation

## ✍️ Author
Developed by **Emelly Beatriz** with ❀️

πŸ“¬ Get in touch:

πŸ“§ emellybmuniz@gmail.com |
πŸ’Ό [Linkedin](https://www.linkedin.com/in/emellybmuniz) |
πŸ™ [Github](https://github.com/emellybmuniz)

*Last updated: November 2025*