Small FYI if you want to install this wonderful plugin for every Elixir/Phoenix project:
- Install the
prettierandprettier-plugin-eexnpm packagesgloballywith:
npm install -g prettier prettier-plugin-eex
-
Make sure that you have the Prettier VSCode Extension installed.
-
Find the global path to which
npminstalled yourprettierpackage. These are some common paths:
# macOS
/usr/local/lib/node_modules/prettier
# unix
/usr/local/lib/node_modules/prettier
# Windows
%USERPROFILE%\AppData\Roaming\npm\node_modules/prettier
- Set that
global pathas aPrettier: Prettier Patheither in yourSettingsunderExtensions > Prettier > Prettier: Prettier Pathor in yoursettings.jsondirectly:
"prettier.prettierPath": GLOBAL_PATH
# e.g. "prettier.prettierPath": "/usr/local/lib/node_modules/prettier"
Thank you @adamzapasnik for this great plugin!






















