Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [indentation]

The tag has no usage guidance.

0
votes
0answers
17 views

Should you be able to insert a tab character by pressing the tab button? [duplicate]

When I was writing my answer to the question Where can I start to learn?, I tried to insert a tab character by pressing the tab button but all that did was toggle out of my answer box so I inserted a ...
1
vote
0answers
25 views

When you indent an image in a list, it overhangs [duplicate]

As you can see, the image is overhanging the edge of the box. This is also easy to see in editing and creating: Here you can see that the dotted lines are blocked by the image going over it.
48
votes
2answers
524 views

Make Ctrl+K indent entire lines even when the first and last are only partially highlighted

When we select text for indenting, e.g. and Ctrl+k, we get this: I don't think our target audience is accustomed to this behavior, although I could be wrong. The following programs indent entire ...
3
votes
1answer
79 views

Should the formatting style be mimicked when editing posts? [duplicate]

Sometimes I see code like this on Stackoverflow: int main() { if(true){ return 0; } else{ return 1; } while(true){return -1;} } I will usually suggest this edit: int main() { if(true){ ...
0
votes
1answer
85 views

Code indentation not working for that answer, neither tabs nor spaces

I've posted that answer: https://stackoverflow.com/a/17989511/2605780 and I was fighting a bit with indentation. No matter what I've set, spaces or tabs, there is no indentation displayed. Both ...
20
votes
2answers
5k views

How to add empty new line in block quote?

Not sure if this is a duplicate. I can have the following in a block quote: Case 1 00:23 00:54 Case 2 00:21 00:51 But this makes it look clumsy. I want the following ...
12
votes
3answers
34k views

How to easily unindent a block of code?

When editing a post, sometimes the code block has been indented too far and it forces a horizontal scrollbar unnecessarily. Is there a quick way to correct this type of indentation or do I still have ...
-7
votes
2answers
877 views

Should Stack Exchange switch to ACE Editor?

There is an Open Source code editor called ACE. It is used in Github gist right now. One feature they have that I love is box shaped text selection. (Alt+Click drag to use) This is hyper-useful ...
3
votes
2answers
87 views

Add 4 spaces in the middle of the code

I know that if I press ctrl + k I automatically can add 4 spaces, but what if the code has already 4 spaces and I need to add 4 spaces more to it? If I press tab in the SO editor it just gets me ...
4
votes
2answers
124 views

Code button no longer unindenting like it used to?

As well as slightly different images for the vote counts on question the SO questions pages, the code button in the question editing doesn't seem to be unindenting like it used to do. Is it just me, ...
2
votes
0answers
64 views

Code indenting just appears to be broken here [duplicate]

Possible Duplicate: Code blocks don’t show leading spaces in IE 9 (and 10) I was trying to edit this person's post. All the spacing is there but it is ignoring all my spaces and indenting. Try ...
51
votes
3answers
1k views

Auto indentation in code editor

When writing code in the question/answer editor's code block I believe that it would be extremely useful if we could have the code auto indented instead of being forced to hit space bar multiple times....
7
votes
1answer
131 views

Un-indenting code when copy-and-pasting from an external editor

Sometimes, when I copy and paste code from my editor to the question box, the indent level is too much; I think there should be buttons to move the indent level left or right without having to ...
-1
votes
1answer
711 views

Check for the indentation code control

I know that it isn't a new question (I read already some others questions) but: the question was asked many months ago; my problem, perhaps, is a little different! Well, as I wrote in the previous ...
2
votes
0answers
185 views

Start new lines of code block with same indent as previous line [duplicate]

Possible Duplicates: Automatic code reindent button AutoIndent of Source Code I realize that you can already indent code blocks with the 'code sample' button or ctrl+K, but that's something you ...
4
votes
2answers
211 views

Can't post question due to code formatting checker

I've tried indenting everything, except for syntax highlighting which I was going to edit after my post it's "blocking" the code correctly, but the code formatting checker keeps rejecting it. What am ...
-5
votes
2answers
2k views

I can't post my question because of the “indentation”! How do I fix this?

I entered over 100 lines of code for my question, and then pressed "Submit" on Stack Overflow. The website gave me an error, saying that my code was formatted wrong. It suggested that I use the Ctrl+K ...
0
votes
0answers
90 views

Indent text when hitting tab [duplicate]

Possible Duplicate: Add increase/decrease tab indent buttons to the editor toolbar Have "Tab" key insert spaces when writing a question or answer It would be great to indent and outdent (pasted) ...
7
votes
1answer
99 views

Changing code indentation levels automatically or manually [duplicate]

Possible Duplicate: Add increase/decrease tab indent buttons to the editor toolbar If you have some code which is heavy nested and you just copy some of the inner code you end up with a lot of ...
31
votes
4answers
15k views

Easy way to indent code [duplicate]

I was wondering if there is an easy way to indent the code in Stack Overflow. Whenever I paste in code, all the code loses its indentation; what I have been doing is manually indenting every line with ...
5
votes
0answers
170 views

Make multi-line code indent work with sloppy selections in the editor

This is only a minor annoyance, but one at least I often run into. Would it be possible to make the "indent code" button (or Ctrl+K) always indent entire lines when there's a multi-line selection? It ...
-4
votes
1answer
92 views

Code should be automatically indented when being written

Most of the time, I paste example code into my questions/answers, but for very short snippets I also type it directly into the field in the browser. For those times, it would be really nice to have a ...
1
vote
1answer
106 views

Provide a warning for incomplete indentation when they miss it by that much

Would you believe that someone indented their code with three spaces, and got an error message letting them know that it won't work? Find that hard to believe? Ok, would you believe they got a tool-...