sublime_black icon indicating copy to clipboard operation
sublime_black copied to clipboard

format only selected fragment

Open mgaitan opened this issue 7 years ago • 3 comments

I would like to format only a fragment. not the whole file. Could it be possible?

mgaitan avatar May 16 '18 20:05 mgaitan

Not possible at the moment until Sublime supports Python3.6

csurfer avatar May 18 '18 07:05 csurfer

but why not dump the selected fragment to a temp file and apply black formatting to this. Then take the result an replace the fragment? That way should be possible, right?

mgaitan avatar May 18 '18 12:05 mgaitan

I would also really like to have this feature. Maybe there is something in this (https://github.com/ctruett/FeaturePresentation) ST3 plugin that could help the development of the requested feature.

joWeiss avatar Aug 23 '18 09:08 joWeiss