Skip to content

How can i import code from repository in discussion? #124919

Discussion options

You must be logged in to vote
  1. Locate the Code:

    • Go to your GitHub repository and find the file with the code you want to reference.
  2. Highlight the Code:

    • Click on the line number(s) on the left side of the code you want to highlight. This will highlight the code.
  3. Copy the Permalink:

    • After highlighting the code, a little link icon will appear next to the line numbers. Click this link icon to copy the URL (permalink) to your clipboard.
  4. Create a New Issue:

    • Go to the "Issues" tab in your repository.
    • Click on "New issue" to create a new issue.
  5. Paste the Link in the Issue:

    • In the issue description, paste the URL you copied. GitHub will automatically convert this link into a reference to the code snippet.
    • Add…

Replies: 1 comment 2 replies

This comment was marked as off-topic.

@osangu
Comment options

@GeloCreativeStudio

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment