Why is there no support for keyboard shortcuts to apply formatting (like Ctrl+K for code
) within comments to a post?
3 Answers
"Why are there no keyboard shortcuts for comments"
- Kind of, there are, but you have to install it yourself:
Add keyboard shortcuts to comments
This script adds Ctrl+B (bold), Ctrl+I (italic), Ctrl+K (code), and Ctrl+L (link) shortcuts to comments.
The working userscript is the one I posted as an answer. It's a pretty handy feature, I use it all the time.
-
4I like you crazies who want such a feature installing a userscript much better than me having to install a userscript to unbind these shortcuts. Cheers!– jscsCommented Oct 22, 2015 at 3:15
-
1@Josh, I'm flagging you for your duplicate comments:
Web app keyboard shortcuts that shadow OS keyboard commands are the work of the devil.
:D Commented Oct 22, 2015 at 3:23 -
Hey, it's not my fault that people keep proposing the same terrible idea. :)– jscsCommented Oct 22, 2015 at 3:25
-
1Some feature-requests should prompt a warning when composing the question: "Did you already check Stack Apps?" (: Commented Oct 22, 2015 at 3:27
-
1This is cool!! Never thought its so simple to achieve this.. :) Thank you.. :) Commented Oct 22, 2015 at 3:29
-
@brasofilo, I installed scripts but am getting
Uncaught ReferenceError: StackExchange is not defined
and everything stops working.. :( Commented Oct 22, 2015 at 3:43 -
@GuruprasadRao, please, report this at Stack Apps and specify your browser and extension. Commented Oct 22, 2015 at 3:51
Yes there is a reason for the feature not existing currently: comments are second-class citizens. In general, comments shouldn't need that much formatting. If you find yourself making these heavily formatted comments, it's probably time to add/edit a post instead.
Among other reasons, community feedback (via voting and comments) is an integral part of a post, but that feedback is lacking for comments. Which is why posts are preferred over comments. Making it easy to format comments would further encourage overuse of comments over posts. This is probably why SO hasn't supported full markdown, a WYSIWYG editor, or formatting shortcuts for comments.
-
1I treat my comments as first-class communication tools. If we are able to format it, being second-class content is not a reason not to have the shortcuts. I'm sure there are valid reasons not to implement it, from economy to dev-time but I don't buy the "second citizen" argument. Commented Oct 22, 2015 at 3:36
Comments are second-hand citizens. If you're really putting that much effort into a comment (that backticks ``
can't solve), you should consider posting an answer or making an edit instead. Even chat would be a better option. Remember that comments are subject to clean up at any time, so all that work could really be for nothing unless it's part of a post.
-
Many times I realised that comments are really important part to judge if the answer is really usefull or not.. when there are dozens of answer available to single question– KushalCommented May 15, 2015 at 13:08
-
8Comments being second-class citizens is not an excuse for lack of useful functionality. Commented May 15, 2015 at 13:11
-
@LucasTrzesniewski Thank you for support.. I feel same thing and agree with you– KushalCommented May 15, 2015 at 13:13
-
@Kushal: Is that because the answer is lacking some important content, meaning the comment should be incorporated? Commented Jul 20, 2015 at 15:15
-
2This doesn't answer the question. Can we add that feature?– user5306470Commented Nov 8, 2015 at 19:58
-
@DaniSpringer The question is a discussion not a feature-request. So this is an answer to the question "Why is there no keyboard support for comments?"– ryanyuyuCommented Nov 8, 2015 at 20:08
-
It had the feature-request tag.– user5306470Commented Nov 8, 2015 at 20:10
-
@DaniSpringer I don't think so. Check the revision history– ryanyuyuCommented Nov 8, 2015 at 20:14
-
I must have mixed up with a different question.– user5306470Commented Nov 8, 2015 at 20:18
you mean
bolding and italics don't work?ctrl+K
from keyboard, it should automatically convert the same, like you see in answertextarea
textarea
right? Would it be difficult to provide the same to comments as well?<kbd>
tags render as a box/button in posts, but not in comments. That's not what this question was actually about, so I edited it to reflect that.