Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some basic VS Code settings #496

Merged
merged 3 commits into from
Aug 27, 2024
Merged

Add some basic VS Code settings #496

merged 3 commits into from
Aug 27, 2024

Conversation

alexdewar
Copy link
Contributor

It periodically annoys me when I find that files aren't being autoformatted in VS Code or the rulers are in the wrong place for HGPS. Let's add these settings for VS Code users.

I've also added the C++ extension pack (which includes CMake support) and a spellchecker to the extension recommendations.

Copy link
Contributor

@jamesturner246 jamesturner246 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 Just a question.

Comment on lines +10 to +18
"[json]": {
"editor.formatOnSave": false
},
"[jsonc]": {
"editor.formatOnSave": false
},
"[yaml]": {
"editor.formatOnSave": false
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Home come the config file rules are disabled?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean for formatOnSave? It's because we don't want VS Code to auto-format these files using its own rules, only to have them be reformatted again by the pre-commit hook on commit. It doesn't really matter, but it's probably a bit annoying to have them fighting each other all the time.

@alexdewar alexdewar merged commit 577d41f into main Aug 27, 2024
5 checks passed
@alexdewar alexdewar deleted the vscode_settings branch August 27, 2024 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants