Prettier integration for Sublime Text, providing faster format on save
.
JsPrettier is very slow. It blocks your main thread.
This plugin solves this problem by spawning a prettier daemon.
You don't have to install JsPrettier to use this plugin.
This plugin ONLY supports Sublime Text 4 currently. Sorry for st2/st3 users. If you want it to work on st2/st3, welcome to submit a PR!
Make sure you have installed node
and prettier
(with npm i -g
) globally.
Ctrl/CMD + Shift + P, Package Control: Add Repository
, paste this link:
https://github.com/hyrious/prettierd
Then run Package Control: Install Package
, select prettierd
.
Then your editing file will be formatted on save.
-
Download and extract the zip file to your Sublime Text Packages directory.
You can open that folder via
Menu - Preferences - Browse Packages…
,
on Windows it is%AppData%\Sublime Text\Packages
-
Rename the extracted directory from prettierd-main to prettierd.
- Goto Sublime Text Packages directory.
- Run
git clone https://github.com/hyrious/prettierd
.
Ctrl/CMD + Shift + P, Preferences: Prettier
.
Since this plugin loads prettier from npm global scope, it can only loads plugins installed globally too.
So for example if you're using prettier-plugin-tailwindcss
in your project, you should install it globally to make it work:
npm i -g prettier-plugin-tailwindcss
diff-match-patch - Apache-2.0 License
MIT @ hyrious