4 ms·
This comes built in to vscode, you right click on any piece of code and select 'copy as github permalink', done. https://i.imgur.com/hJ1WnZT.png https://i.imgu
by smcleod 4y ago
This comes built in to vscode, you right click on any piece of code and select 'copy as github permalink', done.
https://i.imgur.com/hJ1WnZT.png https://i.imgur.com/hJ1WnZT.png
- rupertdenton 4y agoHey, thanks for the comment. Another commenter also shared this plugin, looks interesting! We are trying to really help devs get on the same page fast when sharing code with one another - so the codelinks you can share via CodeLink unfurl in slack (we've got more integrations coming too) and link directly to the code in your repo or IDE. We also integrate with JetBrains which was some feedback we got from our early users. Also some other nifty tricks we've built into CodeLink: CodeLink auto loads the lines of code in VS Code, JetBrains, GitHub, GitLab, BitBucket etc. If you don't have the repo locally, it'll check it out for you. If you're not on the right commit/branch it'll swap to it for you. If you share the link on slack, it'll unfurl the snippet there. If you've forgotten where you shared the link, you can click on the "backlinks" and load up the exact thread in Slack where you shared it. (Bloody hell should have included this all in OP!!) Definitely keen for feedback so appreciate yours, keep it coming!
- LoganDark 4y ago> If you don't have the repo locally, it'll check it out for you. If you're not on the right commit/branch it'll swap to it for you. Does it ask to do this? Checking out a branch is not so simple, maybe I have modified files locally and don't want to stash them right now.
- waigani 4y ago
- rupertdenton 4y agoYep! It does this. You'll be prompted with a popup to confirm if you want to switch branches. If you don't confirm it won't do anything.
- marstall 4y agojetbrains integration key on our team which is not an editor monoculture ...
- rupertdenton 4y agoThat's great to hear - we are really pleased to offer integrations with multiple IDEs to support as many devs as possible. If you get a chance to test it out on your JB set up, would love to hear your thoughts.
- marstall 4y agowas trying to install in webstorm 2021.2.1 on my intel Mac and got this: Cannot create class io.codelink.plugins.actions.EstablishConnectionAction
- rupertdenton 4y agoHey thanks for letting us know. We are looking into this!
- rupertdenton 4y agoHey! Just following up. We tried to recreate your issue but had no luck. We’d love to follow up with you and get this figured out. You can join our community discord and give us a bell: https://discord.gg/EXEuv2Ym https://discord.gg/EXEuv2Ym
- grahamplace 4y agoThis appears to be a Jetbrains equivalent to the aforementioned VSCode plugin (I haven't tried either so can't speak to feature parity): https://plugins.jetbrains.com/plugin/17756-copy-git-link https://plugins.jetbrains.com/plugin/17756-copy-git-link Edit: I just tried it, works great! Happy to have found this plugin via this post as I often open up Github just to link someone to a particular line of code I'm looking at in my IDE
- 4y ago
- waigani 4y agoCodeLink auto loads the lines of code in VS Code, JetBrains, GitHub, GitLab, BitBucket etc If you don't have the repo locally, it'll check it out for you. If you're not on the right commit/branch it'll swap to it for you. If you share the link on slack, it'll unfurl the snippet there. If you've forgotten where you shared the link, you can click on the "backlinks" and load up the exact thread in Slack where you shared it. ... So, not quite done ;-)
- leetrout 4y agoVouched. Looks like you might be shadow banned.
- maxmcd 4y agoI believe this is added with the "GitHub Pull Requests and Issues" extension.