sublime_black
sublime_black copied to clipboard
format only selected fragment
I would like to format only a fragment. not the whole file. Could it be possible?
Not possible at the moment until Sublime supports Python3.6
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?
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.