Skip to content

Commit ae0ead8

Browse files
authored
Add VSCode settings and recommended extensions (#216)
1 parent 234f8ea commit ae0ead8

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

.vscode/extensions.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"recommendations": [
3+
"swiftlang.swift-vscode",
4+
"vknabel.vscode-swiftformat"
5+
]
6+
}

.vscode/settings.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
// SwiftFormat configuration to match CI
3+
"swiftformat.configSearchPaths": [
4+
".swiftformat"
5+
],
6+
// Swift language settings
7+
"swift.path": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin",
8+
"swift.buildPath": ".build",
9+
// Editor settings for Swift development
10+
"editor.tabSize": 4,
11+
"editor.insertSpaces": true,
12+
"editor.detectIndentation": false,
13+
"editor.rulers": [],
14+
"editor.wordWrap": "off",
15+
"editor.trimAutoWhitespace": true,
16+
// File associations
17+
"files.associations": {
18+
"*.swift": "swift"
19+
},
20+
// Format on save for Swift files
21+
"[swift]": {
22+
"editor.formatOnSave": true,
23+
"editor.defaultFormatter": "vknabel.vscode-swiftformat"
24+
},
25+
// Exclude build artifacts from search
26+
"search.exclude": {
27+
"**/.build": true,
28+
"**/Package.resolved": true
29+
},
30+
// Files to exclude from file watching
31+
"files.watcherExclude": {
32+
"**/.build/**": true,
33+
"**/Package.resolved": true
34+
},
35+
"swift.swiftEnvironmentVariables": {
36+
"DEVELOPER_DIR": "/Applications/Xcode.app"
37+
}
38+
}

0 commit comments

Comments
 (0)