How to create issue for some line/s of code or how to reference some line/s of code in issue

How to create issue for some line/s of code or how to reference some line/s of code in issue

How can I create an issue for some line/s of code and then have the issue show (embed) these lines of code?

In gitHub this can be done when viewing a file by clicking on the line number and then on the three … and selecting “Reference in new issue”. This will create a new issue and embed the selected line/s in the issue.
I didn’t figure out how this handy thing can be done in gitLab :confused: