I don't know if anyone is feeling the same as me, but the text editor of SO is just awful for editing code. For example:
You cannot quickly indent a line with tab. If you press tab, the text editor loses focus and the focus moves somewhere else.
You cannot decrease the indent level quickly (for example with shift + tab)
All of the above can be done with the text editor used by GitHub. Can SO please improve its text editor? At the moment, every time I need to copy/paste a piece of code into my SO question I had to copy it into my text editor (Sublime Text) to increase/decrease the indentation first then copy it back to the SO editor. It's very annoying.
{ }
button (or its keyboard equivalent,CTRL+k
) on the menu bar will add the indentation needed to a whole block at once.ctrl-K
to indent and dedent code.