# GitHub protips that every developer should know

### Keyboard Shortcuts
If you’re getting into open-source and using GitHub most of the time then you should learn more about all the keyboard shortcuts available on github. Few of them you can see by hitting <kbd>Shift</kbd> + <kbd>?</kbd> 

Please have a look at the below snapshots which show few shortcuts.
![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1618150198033/Z4Bk9MjAv.png)

### Finding Files over Github Projects
You can find files on github in just a few seconds. `Press` <kbd>t</kbd> and type your file name which you want to search. On hitting <kbd>t</kbd>, it will Activate file finder which help to find any file within the github-repository.

![Gihub-Finder.gif](https://cdn.hashnode.com/res/hashnode/image/upload/v1618152929493/4MEeWv--z.gif)

### Line Highlighting, Copy Lines & Copy Permalink
This is one of the best things if you are working with a large team or working as an open-source contributor. Line highlighting will help you to highlight a piece of code and can share it with your team or can use for creating issue/pull requests.

`For highlighting the lines`, first, click on the line number from where you need to start then `Press` <kbd>Shift</kbd> and select the line number where you want to ends.
After Highlighting, On Clicking three dots menu, you can see 4 options `[Copy Lines, Copy permalink, View git blame, Reference in new issue]`
![GitHib-10.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1618238120121/-zaRuvqQ6.png) ![GitHib-11.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1618238229201/eTQi7jtmW.png)

`Copy Line:` This will helps you to copy & share over the sharing platform.<br>
`Copy permalink:` This will helps you to share highlighted code through the links & this link can also be used in creating new issue/creating the pull request.

### Browse files and directories with ease
You can browse files & directories using  [Octotree Chrome extensions](https://chrome.google.com/webstore/detail/octotree-github-code-tree/bkhaagjahfmjljalopjnoealnfndnagc). Using these extensions, you can easily navigate to directories, and open files with the same structure you have in local machine. This extension is available for another browser also [Octotree](https://github.com/ovity/octotree)

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1618158730466/sqwYPu_4B.png)


### Opening Github repository in VS code
This is the most interesting thing for the developers who are using Visual Studio Code. This trick will help you to browse files & directories from the remote itself.  If you are getting into open-source then this will help you to read code over github no need to clone and check into your local machine.

For using this trick, you need to add `1s` into your domain of github repository.

Ex: Suppose, I have the repository  [https://github.com/amankumar367/Android-ExoPlayer](https://github.com/amankumar367/Android-ExoPlayer) in this link you just need to add `1s` after `github -> github1s` and the final link will be [https://github1s.com/amankumar367/Android-ExoPlayer](https://github1s.com/amankumar367/Android-ExoPlayer)


![GitHib-8.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1618232345026/RAgkigYzg.png)

#### `Note:` This will work for the repository only.

------


I hope you liked this article. If you find this article helpful then share it with everyone. Maybe it’ll help someone who needs it 😃.

Thank you!




