Yes, you should. I used to be a big advocate of not pushing IDE configs to git, however, things have changed lately for good reasons. I was reading through the Angular 17 .gitignore and found the following:
# They ignored Idea (Webstorm) completely.idea/# However, they kept the following 4 files version controlled.vscode/*!.vscode/settings.json!.vscode/tasks.json!.vscode/launch.json!.vscode/extensions.json.history/*