diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 00000000..eec46520 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,6 @@ +{ + "recommendations": [ + "swiftlang.swift-vscode", + "vknabel.vscode-swiftformat" + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..29293adb --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,38 @@ +{ + // SwiftFormat configuration to match CI + "swiftformat.configSearchPaths": [ + ".swiftformat" + ], + // Swift language settings + "swift.path": "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin", + "swift.buildPath": ".build", + // Editor settings for Swift development + "editor.tabSize": 4, + "editor.insertSpaces": true, + "editor.detectIndentation": false, + "editor.rulers": [], + "editor.wordWrap": "off", + "editor.trimAutoWhitespace": true, + // File associations + "files.associations": { + "*.swift": "swift" + }, + // Format on save for Swift files + "[swift]": { + "editor.formatOnSave": true, + "editor.defaultFormatter": "vknabel.vscode-swiftformat" + }, + // Exclude build artifacts from search + "search.exclude": { + "**/.build": true, + "**/Package.resolved": true + }, + // Files to exclude from file watching + "files.watcherExclude": { + "**/.build/**": true, + "**/Package.resolved": true + }, + "swift.swiftEnvironmentVariables": { + "DEVELOPER_DIR": "/Applications/Xcode.app" + } +} \ No newline at end of file