editor: add reformat command for editor tab.