Sometimes you don’t necessarily want to comment on a block of code, but instead just want to easily share the code with a teammate. For example, in a Jira ticket, a PR comment, or a Slack thread. CodeStream's permalinks are "living" links that will always point to the code in question, even if it's moved to a different location in the file.
Select the code in your editor and then click the button to get a permalink for that code.
Decide whether you want the permalink to be public or private, with private permalinks requiring CodeStream authentication before the code can be viewed.
Copy your permalink and paste anywhere you'd like to share the block of code.
Whenever someone clicks on the permalink, they'll be brought to a web page rendering the codemark. From there you can open the code in your IDE, or on GitHub/Bitbucket/GitLab.