Sets up autocompletion using vscode-swift-development-environment. If the plugin itself does not work, open an issue for SDE.
- Run
./install.sh
. It will clone and build all your dependencies. In practice you should do this globally. - Open
.vscode/settings.json
, replace~/Desktop/vscode-swift-development-environment-examples
with your actual path. - Make sure you have SDE installed.
- Now reload the vscode window.
- Open some swift files e.g.
Sources/Greet/main.swift
and hover around.
Sets up debugging using LLDB Debugger. If the plugin itself does not work, open an issue for LLDB Debugger.
- Make sure you ran
1
and2
from above. - Make sure you have LLDB Debugger installed.
- Put a breakpoint into
Sources/Greet/main.swift
andTests/ExampleProjectTests/ExampleProjectTests.swift
. - Select the debuggers tab.
Sets up autocompletion using vscode-swiftformat. If the plugin itself does not work, open an issue for vscode-swiftformat.
- Make sure you ran
1
and2
from above. - Make sure you have SwiftFormat installed.
- Open some swift files e.g.
Sources/Greet/main.swift
, make some changes and save.