- Open the file on GitHub, and go to the line you want.
- Click on the line number on the left. A three-dot option will show on the left of the line number. (Also you will find the address in the address bar of your browser changes.)
- Hold
Shiftkey and click on another line number. Then the code block is selected. - Click the three-dot option and select
Copy permalink. Then the link to the code block is copied in your clipboard. (If you cannot work in this way, you can hit theykey to make the address in the address bar to change to the address associatated with the code block you select, and copy the address directly from the address bar.)
See also the video.
