VSCode Custom Local FormattersLets users add formatters to VSCode that run locally defined scripts. MotivationVSCode's formatter features lets you quickly format code through the Format Document command ( However, the only way to add new formatters to VSCode is by installing an extension. If you have custom formatting tools or scripts you want to run, there's no easy way to integrate them with VSCode currently. This extension solves that problem by providing an easy way to register custom scripts as VSCode formatters. Here's an example of a custom python script that sorts imports and reformats code being run on a python file: Quickstart
Extension SettingsFull extension configuration schema and documentation can be found in the Known LimitationsVSCode doesn't seem to provide a way to name the formatter which an extension creates. This means that if you register multiple formatters for the same language, they will unfortunately both show up as 'Custom Local Formatters' and it will be difficult to tell them apart. |