Re-enable all files inside a folder in Sublime

I have Sublime Text 3, and I want to reindent all the files inside the folder . I am currently using HTML-CSS-JS Prettify as my plugin for reuse. Therefore, I want to right-click the folder icon, which is located on the sidebar, and be able to re-place all the files inside them.

thank

+4
source share
1 answer

You can come closer if you want to write your own plugin .

Plugin code:

import sublime
import sublime_plugin

class ReindentAllCommand(sublime_plugin.TextCommand):
    def run(self, edit):
        [v.run_command('htmlprettify') for v in sublime.active_window().views()]

Sublime Text. htmlprettify . , .

, .

+3

Source: https://habr.com/ru/post/1650763/


All Articles