Some of the files I am editing have a huge amount of whitespace leading before each line, for example:
module Something
module Inside
class FinallyClass
def each_method_adds_indentation_as_well
# actual code
# ..
# ..
end
end
end
end
And sometimes even more indentation happens before it actually gets into the code part which I work on.
Is there a way to condense one, or two levels of indentation somehow through a plugin or a setting? (while maintaining the file contents intact)
So that above would become
module Something
module Inside # (hidden indent level 1)
class FinallyClass # (hidden indent level 2)
def each_method_adds_indentation_as_well
# actual code
# ..
# ..
end
end # (hidden indent level 2)
end # (hidden indent level 1)
end
class Something::Inside::FinallyClass
also saves you two levels of indentation. I don't understand why so many Rubyists add so much unneeded indentation like that :-/