I'm using VS Code and having issues with the Angular 17 indentation (Alt+Shift+F). I'd like to change how the indentation is working with Angular 17 views. Currently with the new control flow it's doing this:
I'd like to see it do this:
I'm not sure if the issue is with the Angular Language Service, Prettier, or VS Code.
Can anyone please guide me as this is driving me a bit crazy.
Prettier 3.1 supports intending Angular's new control flow.
Run npm i prettier@3.1 --save-dev
to install v3.1 in your package.json
as a dev dependency. Then, be sure that you have the Prettier VSCode extension installed, which uses the version from your node_modules
. Finally, press Cmd+Shift+P
, search for Format...
, and format with Prettier.