Format all files in your workspace, the right way.
Run the command AFF: Format all files to format all the files in the workspace, But ignore the same files as your gitignore file.
It is really simple:, just install the extension, run the command, confirm, and thats it
Check this out:
Hit ctrl + shift + p to open the command palette, and search for format all files, you'll see command above
A pop-up window will show up, asking you to confirm the action. If you don't have a default formatter, the extension will ask you to choose/install one.

Note: You still need to have a formatter for each type of file you want to format, as
Prettierfor js/ts
The extension will automatically open, format, and close all the files for you, ignoring the same files in your .gitignore file.
This extension contributes the following settings:
Automatically close files: Should we close each file after it is formatted?
ignore pattern: Add more ignore patters so those files also get ignored.
Include Gitignore: Check the .gitignore file to ignore the same files as git does.
Include pattern: Add more ignore patters so those files get included.
Please check the github repo
Please see changelog for notes

