Skip to content

Commit

Permalink
Merge pull request #496 from imperialCHEPI/vscode_settings
Browse files Browse the repository at this point in the history
Add some basic VS Code settings
  • Loading branch information
alexdewar authored Aug 27, 2024
2 parents 2edc624 + 7e31b96 commit 577d41f
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,7 @@ FodyWeavers.xsd
# VS Code files for those working on multiple tools
.vscode/*
!.vscode/extensions.json
!.vscode/settings.json
*.code-workspace

# Local History for Visual Studio Code
Expand Down
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ repos:
- id: fix-byte-order-marker
- id: check-merge-conflict
- id: check-json
exclude: .vscode/settings.json
- id: check-yaml
- id: trailing-whitespace
- id: end-of-file-fixer
- id: pretty-format-json
exclude: .vscode/settings.json
args: [--autofix, --indent, '4', --no-sort]
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.14.0
Expand Down
5 changes: 3 additions & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"recommendations": [
"ms-vscode.cpptools",
"davidanson.vscode-markdownlint"
"ms-vscode.cpptools-extension-pack",
"davidanson.vscode-markdownlint",
"streetsidesoftware.code-spell-checker"
]
}
19 changes: 19 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"[cpp]": {
"editor.formatOnSave": true,
"editor.rulers": [100],
},
"[cmake]": {
"editor.formatOnSave": true,
"editor.rulers": [100],
},
"[json]": {
"editor.formatOnSave": false
},
"[jsonc]": {
"editor.formatOnSave": false
},
"[yaml]": {
"editor.formatOnSave": false
}
}

0 comments on commit 577d41f

Please sign in to comment.