![]() You can add a keyboard shortcut to run this External tool configuration in Preferences | Keymap. It will run Prettier for the current file. Press Cmd/Ctrl-Shift-A ( Find Action), search for Prettier, and then hit Enter. If Prettier is installed locally in your project, replace the path in Program with $ProjectFileDir$/node_modules/.bin/prettier on macOS and Linux or $ProjectFileDir$\node_modules\.bin\prettier.cmd on Windows. Program: prettier on macOS and Linux or C:\Users\user_name\AppData\Roaming\npm\prettier.cmd on Windows (or whatever npm prefix -g returns), if Prettier is installed globally.Go to Preferences | Tools | External Tools and click to add a new tool. ![]() Make sure that the ESLint integration is enabled in Preferences | Languages
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |