You can define include and exclude patterns to manage which files and directories should be formatted. Besides that, you can also select only certain directories to format with the context menu.
In Chrome, go to chrome://extensions/, enable Developer mode using the toggle in the top-right, then click the “Load unpacked ...