Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

This is related to the "quoted code" question, but is more to do with something I just remembered is a bit of a pain. Often, when I quote a method or class name, I'll link to the documentation, like this:

Interestingly, .NET's Interlocked class didn't gain a Read method until .NET 2.0.

Doing this involves typing the name of the class/method, then selecting it and hitting Ctrl-K, then reselecting it to include the back ticks, then hitting Ctrl-L. It's a bit of a palaver. Any chance we could have a single keyboard shortcut to do both bits in a single hit? (So it would pop up the URL dialog, but the text would already be in a code font.)

share|improve this question
And here I've been typing [ ` text ` ] ( link ) all this time! :) That's a real pain on my phone. – David Harkness Mar 4 '12 at 22:01
up vote 4 down vote accepted

Link first, then mark as code:

  1. Type function name / keyword
  2. Select symbol
  3. Hit Ctrl+L, enter URL. Linkify shortcut leaves link text selected.
  4. Hit Ctrl+K
share|improve this answer
Ah, excellent. Will try that today and see if it feels smoother. – Jon Skeet Jul 6 '09 at 5:52

This seems like a overly specific thing to add a keyboard shortcut for (we'll end up turning WMD into a javascript-based emacs!..)

It's not much typing to add the [``]() around "Interlocked" by hand - Markdown is pretty terse..

share|improve this answer
Yes, it's terse - but adding the backticks as I go interrupts my general typing flow for some reason. (I also tend to go back to do the markup, after first writing the text.) I just thought I'd ask as it's something I do many, many times a day. – Jon Skeet Jul 6 '09 at 5:49

I always just do all of the linking myself so that I can control the names of the links.

[example]: "This is just an example"

This points to [example][], so does [this][example].

If you use the built-in editor features, it would have added the link twice [1]: [2]:, which makes it harder to edit the post, as links change.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .