I can't get any JavaScript formatter settings to work (e.g. setting the tab policy to "Spaces only").
- Fresh download of 2021-03 "Eclipse IDE for Enterprise Java and Web Developers" for Windows
- New workspace
- New "Static Web Project"
- Changed the JavaScript formatter in both the global eclipse settings as well as the project specific settings
- Default include path
- Editing with "Generic Text Editor"
- Ctrl + Shift + F does format the file, but always with some default settings (with tabs)


For JavaScript support there are two alternatives,
To configure the formatter used in the Generic Text Editor, see Angelo Zerr comment: