If no selection is given, Format the Current Statement
Closed this issue · 1 comments
kashev commented
Is it possible to format the statement the cursor is over if use_entire_file_if_no_selection
is set to False
?
jason-kane commented
It's tricky. Unless you give yapf enough context to properly determine the nesting depth it will probably either mangle your code or do nothing.
More generally -- yapf is intended for reformatting entire files not single statements.