electric-operator icon indicating copy to clipboard operation
electric-operator copied to clipboard

apply rules to region

Open fkgruber opened this issue 8 years ago • 1 comments

Hi It would be a nice feature to be able to select a region of existing code and apply the electric-operator rules to it. Essentially make existing code look better.

thanks F

fkgruber avatar Aug 03 '15 20:08 fkgruber

Yeah this might be nice, I'll have a think about how it can be implemented. If I can do it without having to change how existing rules work then I'll do it.

It's also worth noting that there are plenty of tools for "offline" beautification of code. For example python has autopep8 which will apply the same spacing rules as electric-operator's defaults. These tools are usually more powerful than anything I could or would add.

davidshepherd7 avatar Aug 05 '15 10:08 davidshepherd7