News for hackers. Stuff that matters.
Re:Show HN: CodeLink: create links to blocks of code in your... by smcleod on Tuesday November 22, 2022 @05:51PM (#33712692)
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

Re:Show HN: CodeLink: create links to blocks of code in your... by rupertdenton on Tuesday November 22, 2022 @06:14PM (#33712899)
Hey, 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 - definitely keen for feedback so appreciate yours, keep it coming!
Re:Show HN: CodeLink: create links to blocks of code in your... by LoganDark on Wednesday November 23, 2022 @12:36AM (#33715630)
> 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.

Re:Show HN: CodeLink: create links to blocks of code in your... by rupertdenton on Thursday November 24, 2022 @05:13PM (#33736833)
Yep! 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.
Re:Show HN: CodeLink: create links to blocks of code in your... by marstall on Tuesday November 22, 2022 @07:06PM (#33713306)
jetbrains integration key on our team which is not an editor monoculture ...
Re:Show HN: CodeLink: create links to blocks of code in your... by rupertdenton on Tuesday November 22, 2022 @07:30PM (#33713507)
That'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.
Re:Show HN: CodeLink: create links to blocks of code in your... by marstall on Tuesday November 22, 2022 @08:51PM (#33714104)
was trying to install in webstorm 2021.2.1 on my intel Mac and got this:

Cannot create class io.codelink.plugins.actions.EstablishConnectionAction

Re:Show HN: CodeLink: create links to blocks of code in your... by rupertdenton on Tuesday November 22, 2022 @10:06PM (#33714655)
Hey thanks for letting us know. We are looking into this!
Re:Show HN: CodeLink: create links to blocks of code in your... by rupertdenton on Tuesday November 22, 2022 @11:07PM (#33715049)
Hey! 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
Re:Show HN: CodeLink: create links to blocks of code in your... by grahamplace on Tuesday November 22, 2022 @08:27PM (#33713926)
This 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

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

Re:Show HN: CodeLink: create links to blocks of code in your... by marstall on Tuesday November 22, 2022 @08:36PM (#33713993)
having one plugin that does both editors is what perked my interest
Re:Show HN: CodeLink: create links to blocks of code in your... by rupertdenton on Tuesday November 22, 2022 @09:51PM (#33714566)
Yes! We are really pleased to support JB.
Re:Show HN: CodeLink: create links to blocks of code in your... by rupertdenton on Tuesday November 22, 2022 @09:50PM (#33714563)
That's great! I've shared this feedback with our team and we are really glad you are happy with it. Please do share any more feedback with us if you have any!!
[dead]
Re:Show HN: CodeLink: create links to blocks of code in your... by leetrout on Tuesday November 22, 2022 @11:19PM (#33715111)
Vouched.

Looks like you might be shadow banned.

Re:Show HN: CodeLink: create links to blocks of code in your... by maxmcd on Tuesday November 22, 2022 @08:30PM (#33713943)
I believe this is added with the "GitHub Pull Requests and Issues" extension.