Intro
There are a few posts related to this (namely Tabbing multiple lines of code on Stack Overflow, Tabbing multiple lines of code on Stack Overflow, and notably Markdown editor indent and outdent functionality), but they're all quite old and I don't think they really address the core issue (besides Markdown editor indent and outdent functionality).
Problem
People write a lot of code in Stack Overflow, in a lot of different ways. They write code by hand when asking questions and in answers, and they copy code from various sources (with various levels of indent and formatting) in questions and answers. They manually edit other peoples' questions and answers, to fix (often terrible) indentation/formatting.
There are a lot of problems with the current flow. It's painfully slow to manually add and delete spaces, especially when you're wanting to change the indentation of entire blocks (because of removing some nesting, or fixing some code you copied from a source with deep indentation).
Solution
The ability to tab (resulting in e.g., 4 spaces, not an actual tab character) single lines, tab multiple lines at once, and shift + tab to remove indentation of multiple lines would make my general flow of answering questions much easier.
Browsers have come a long way since those older posts, and there are plenty of instances of full IDEs in the browser that do this, and I'm not even asking for that. I just want this basic support for managing indentation (with some potential ways to improve it further, such as auto-preseving indentation on newlines). This answer to a similar post says that tabbing going to the next focus element is standard web semantics, and, while I agree (and supporting accessibility is important), this is a specialized domain with a disproportionately large amount of code that requires formatting. This "IDE-like mode" could be toggled, if some user would prefer to have the classic (imo terribly difficult to work with) tabbing behavior.
Example Demo
There is a project that allows for creation of text areas with rich tab indentation support. Here's a demo of it. Just play around with it a bit, and imagine how much easier it would be to answer various questions or fix other people's formatting with an interface like this!
(I'm in no way affiliated with that project, and just found it a few minutes ago when looking for an example)
tl;dr;
A richer text area that supports (or can be toggled to support) indentation control with tabbing and shift-tabbing multiple lines is, in my opinion, one of the largest missing features on Stack Overflow. This, while not trivial, can be implemented without a huge amount of work, and would be a huge quality of life improvement.
Magic(TM Editor)
andtab-editing.user.js
directly, and neither seemed to work? Tampermonkey shows the script is active on the page, but I don't see any different tab behavior.Magic Editor
installed by itself, and it didn't work. All I saw was a magic wand in the edit window, and when I clicked it the whole text flashed and went white. No matter, I'm going to make an extension anyways, as that's more accessible for most people, and it seems fun. I've gotten it working with Parcel and TypeScript, and hope to make it cross-browser compatible.