What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 134 Stack Exchange communities.

One feature of SO that pains me every single time is having to manually indent all code four spaces, and usually copy four spaces to the clipboard so Ctrl+V acts as 'Tab'.

Maybe it's on purpose to stop walls of code, but I want to discuss it anyway because everything else seems to go so smoothly and this annoys me and slows me down every day.

....

And I JUST found the 'code block' feature after many months (having looked through a similar question or two).

I guess then can I rephrase as, 'Please make the CODE BLOCK editor feature/button more obvious' ?

share|improve this question
    
There aren't much icons in the editor.. you could just hover over each and read the tooltip. –  Shadow Wizard Apr 11 '11 at 11:27
    
I notice that a number of new users don't find the formatting options, but I'm not quite sure it's because they aren't obvious enough (more of being in a hurry than confused). I don't see how it could be made to be more obvious? –  Tim Post Apr 11 '11 at 11:30
    
Shadow - I know, the point is it wasn't obvious and I'm a very regular user :) –  Kieren Johnstone Apr 11 '11 at 11:44
    
Ctrl + K -- You don't need to insert the spaces manually. –  Cody Gray Apr 11 '11 at 14:10
1  
@Cody - Yes, thanks, not my point though –  Kieren Johnstone Apr 11 '11 at 14:12
    
Sure, this has been discussed before. Lots of new users don't seem to be able to (or don't want to) find the code formatting feature. The problem is, no one has any more ideas on how to make it more obvious. People don't read informational text, so popping up a big red error message for unformatted code won't even work. Do you have any other ideas? –  Cody Gray Apr 11 '11 at 14:14
1  
@Cody - Yes. On the 'formatting help' page, in the part where it says about code formatting, have it say 'Use Ctrl+K or the Code Formatting toolbar icon (it looks like some curly braces)' - it presents itself as a guide but omits this, saying you have to indent with 4 spaces. Ref: meta.stackoverflow.com/editing-help –  Kieren Johnstone Apr 11 '11 at 14:15
    
@Cody - for/against that? Anyone else? –  Kieren Johnstone Apr 11 '11 at 15:08
    
No, that sounds perfectly reasonable. I can't think of any side effects, so I say why not? Seems like a simple enough change. I just would have preferred you included such a suggestion in your question. I think it would have helped people like me (and apparently Jeff, which I hadn't read when I left the first comment) to understand what you were actually asking. It's easy to say what's wrong, but it's difficult to come up with answers. :-) –  Cody Gray Apr 11 '11 at 15:14
    
@CodyGray: I have a proposal, discussed here. –  Dan Dascalescu Mar 4 at 9:07

3 Answers 3

The code block tool if very obvious if you are looking for it. It is in the toolbar and equally sized as other tools. Making it stand out more than the other tools would make the UI look poor. The tool is mentioned in formatting guides and other questions as you have found.

I would suggest not to make any changes to the tool.

share|improve this answer
3  
What, this formatting guide? meta.stackoverflow.com/editing-help - Where? Maybe it's just me but the guide says 'indent 4 spaces' or refers to the backtick only. "{}" on a toolbar doesn't mean 'code formatting' to me immediately, that's all –  Kieren Johnstone Apr 11 '11 at 11:19
    
Agreed, making the code tool permanently stand out would be a bad idea. But the code tool is the most used one, perhaps after the Link tool, so how about we move it to the left, as in this proposal? PS: it took me five years to notice the { } button. –  Dan Dascalescu Mar 4 at 9:06

Wait, what?

Just press ctrl+k to indent code (or unindent code..)

or of course click the {} toolbar button.

share|improve this answer
1  
Yea, I got that halfway through, don't know if you saw the second half of the question. My point is it took me months to notice :) Might well be my fault, granted, wanted to see if others had the same issue.. –  Kieren Johnstone Apr 11 '11 at 11:18
    
That's not the point. The problem is that the { } button is very, very easy to miss. –  Dan Dascalescu Mar 4 at 9:05

I've just posted a proposal to address the easy-to-miss code button issue. It has generated a lot of discussion - please vote to reopen if you see fit.

share|improve this answer
    
(It would have been sufficient to just add this answer instead of duplicating the information in comments on the question and the rest of the answers here.) –  Jason C Mar 5 at 5:51

You must log in to answer this question.

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