As a developer, most of me have used GitHub. But you may not know that GitHub has many hidden features that can help us use it better. The following article will share with you 8 cool GitHub skills to make you look like a boss!
1. Use the "t" key to quickly search for files
This is a cool feature that only a few people know about . When you want to view the contents of a file, you can press the "T" key and then enter the file name to jump directly to the target file.
Steps
Open https://github.com/lodash/lodash
Press
T
KeyEnter
add.test.js
(any file name you want to search for).Click to jump to view the file content
2. Use online 3 ways to view code in the "VSCode" editor
Although using the "T" key allows us to quickly search files, it becomes inefficient when you want to view the entire project code.
Here are three ways to view the code online, just like in the VSCode editor. The third way is my favorite way and I think you will like it.
2.1. Method 1: Use the "." shortcut key
to open the project https://github.com /vuejs/vue
Click the '.' key on the keyboard
Then the page will be redirected to https://github.dev/vuejs /vue
#2.2. Method 2: Use "github1s.com"
When you see a project you like on GitHub, you need to change "github" to "github1s" to achieve the same effect as method 1!- Open the project https://github.com/vuejs/vue
- Change https://github.com/vuejs/vue to https://github1s.com /vuejs/vue
##2.3. Method 3: Use "gitpod.com/#xxx "The third way is amazing. You can even run Node.js code directly online. I like it so much. It's very easy to use, you just need to prepend your GitHub link with gitpod.com/#.
- Open the project https://github.com/qianlongo/fe-handwriting
- at https://github.com/qianlongo/ Join gitpod.com/# before fe-handwriting.
Sometimes you Specify a line of code and share its location with others, like this:
How to do it?
- Open the project:
- https://github.com/qianlongo/fe-handwriting/blob/master/ 17.quick-sort.js
- Copy link (https://github.com/qianlongo/fe -handwriting/blob/master/17.quick-sort.js#L8)
I believe you must have noticed Our link has "L8" after it. Yes, that's right, you can link to the code you want by changing the "L" line number.
Since we can link to a single line of code, we can link to multiple lines of code.
Steps:
- Open the project:
- https://github.com/qianlongo/fe-handwriting/blob/master/17.quick-sort. js
- Copy link(https://github.com/qianlongo/fe-handwriting/blob/master/17.quick-sort.js#L8-L24)
5. Jump to the function definition
How to quickly link to the defined function The place? I recommend you a chrome plug-in called sourcegraph.
After the plug-in is installed, a button will appear when the mouse is placed where the function is used. Click to link to where it is defined.
##6. View the shortcut key list
GitHub provides a lot of shortcut keys to help us read the code, but remembering them is not an easy thing. Fortunately, you can use"Shift " "" to bring up the shortcut keys list.
Introduction to Programming! !
The above is the detailed content of 8 Cool Tips in GitHub Worth Knowing. For more information, please follow other related articles on the PHP Chinese website!

本篇文章在GitHub上给大家整理总结10 款开源的在线游戏,点开就能玩的那种,大部分游戏支持手机端玩耍,简直不要太爽!

GitHub是一个面向开源及私有软件项目的托管平台,可以让开发者们在这里托管自己的代码,并进行版本控制。GitHub主打的是开源项目与协作,通过这个平台上的开源项目,开发者们可以查看其他开发者的项目源代码,并进行交流和学习。

GitHub是一个非常受欢迎的版本控制和代码托管平台。然而,有时候我们可能会遭遇到无法访问GitHub的问题。这是因为GitHub是一个全球性的平台,受到地理位置、网络状况、网站设置等因素的影响。本文将介绍一些可能导致GitHub不能打开的原因,以及解决这些问题的方法。

GitHub是一个基于Git的代码托管平台,被广泛用于开源社区和企业内部代码管理。在GitHub上可以上传项目和文本文档,但是它所支持的格式和上传方式略有不同。

本篇文章给大家整理分享7个有趣又实用的开源项目,这些项目都已经收录到GitHub上的,希望对大家有所帮助!

GitHub是一个流行的代码托管平台,用于开发人员协作和版本控制。作为开发人员,您可能需要从其他开发人员的GitHub存储库中只下载特定文件夹的内容。在本文中,我们将演示如何在不下载整个存储库的情况下只下载GitHub存储库中的一个文件夹。

GitHub是一个非常受欢迎的版本控制系统,它允许用户在互联网上存储和共享自己的代码库。它是程序员的必备工具之一。但是,有时候我们可能需要删除GitHub库中的一个文件夹。本篇文章将介绍如何删除GitHub库中的一个文件夹。

Github是目前全球最大的开源社区,很多程序员都会将自己的代码托管在Github上,借助其方便的版本控制和协作功能。然而,Github上的项目仅仅是代码,要把它部署到服务器上运行,需要一些额外的工作。本文将为大家介绍具体的操作步骤。


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Dreamweaver Mac version
Visual web development tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

Atom editor mac version download
The most popular open source editor

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

SublimeText3 Chinese version
Chinese version, very easy to use
