7

Resolved

Add reformat code command

description

C# has Ctrl-K Ctrl-F which reformats the selected region according to the users configured formatting options. We should add a similar option which uses our round-trip to re-write the code with a certain (possibly configurable, possibly based on PEP 8) set of formatting rules.

comments

dinov wrote Oct 25, 2011 at 6:33 PM

Auto-indent should also respect formatting options, see http://pytools.codeplex.com/workitem/551

tclzcja wrote Feb 9, 2012 at 2:09 AM

Strongly Agree. Some reformatting like "a=1" -> "a = 1" would improve the readability of the code.