The optimal mechanism is to indent with tabs, and align with spaces (that is, you have the same number of preceding tabs as whatever you're trying to align with, and then use spaces from there).
Though setting your editor up to do that automatically is an incredible pain, and it kind of forces you to use a monospace font.