https://github.com/vknabel/vscode-swift-development-environment-examples
An example Swift project configuration for using VS Code
https://github.com/vknabel/vscode-swift-development-environment-examples
example-project lldb sourcekit-lsp swift vscode
Last synced: 10 months ago
JSON representation
An example Swift project configuration for using VS Code
- Host: GitHub
- URL: https://github.com/vknabel/vscode-swift-development-environment-examples
- Owner: vknabel
- Created: 2019-10-16T07:46:52.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-16T07:47:07.000Z (over 6 years ago)
- Last Synced: 2025-02-26T00:29:09.215Z (over 1 year ago)
- Topics: example-project, lldb, sourcekit-lsp, swift, vscode
- Language: Swift
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Examples for vscode-swift-development-environment
*Sets up autocompletion using [vscode-swift-development-environment](https://github.com/vknabel/vscode-swift-development-environment/). If the plugin itself does not work, [open an issue for SDE](https://github.com/vknabel/vscode-swift-development-environment/issues/new).*
1. Run `./install.sh`. It will clone and build all your dependencies. In practice you should do this globally.
2. Open [`.vscode/settings.json`](.vscode/settings.json), replace `~/Desktop/vscode-swift-development-environment-examples` with your actual path.
3. Make sure you have [SDE](https://marketplace.visualstudio.com/items?itemName=vknabel.vscode-swift-development-environment) installed.
3. Now reload the vscode window.
4. Open some swift files e.g. [`Sources/Greet/main.swift`](Sources/Greet/main.swift) and hover around.
## Debugger Support
*Sets up debugging using [LLDB Debugger](https://github.com/vadimcn/vscode-lldb). If the plugin itself does not work, [open an issue for LLDB Debugger](https://github.com/vadimcn/vscode-lldb/issues/new/choose).*
1. Make sure you ran `1` and `2` from above.
2. Make sure you have [LLDB Debugger](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb) installed.
3. Put a breakpoint into [`Sources/Greet/main.swift`](Sources/Greet/main.swift) and [`Tests/ExampleProjectTests/ExampleProjectTests.swift`](Tests/ExampleProjectTests/ExampleProjectTests.swift).
4. Select the debuggers tab.
## SwiftFormat for VS Code
*Sets up autocompletion using [vscode-swiftformat](https://github.com/vknabel/vscode-swiftformat). If the plugin itself does not work, [open an issue for vscode-swiftformat](https://github.com/vknabel/vscode-swiftformat/issues/new).*
1. Make sure you ran `1` and `2` from above.
2. Make sure you have [SwiftFormat](https://marketplace.visualstudio.com/items?itemName=vknabel.vscode-swiftformat) installed.
3. Open some swift files e.g. [`Sources/Greet/main.swift`](Sources/Greet/main.swift), make some changes and save.