swift-server / guides

Guides for building, debugging and deploying Swift Server applications
258 stars 21 forks source link

Document using Swift with VSCode #67

Open tomerd opened 3 years ago

tomerd commented 3 years ago
0xTim commented 3 years ago

Initial set up stuff:

Install VSCode Install the following extensions:

Open the settings for Swift SDE and set the language server mode to sourcekit-lsp and set the path to SourceKit to your Xcode installations version of the LSP, in my case it was /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/sourcekit-lsp Under the Swift build parameters, pass -Xswiftc -Xfrontend -Xswiftc -serialize-debugging-options as a second option to align it with the test extension

Optional - set all the key shortcuts you use in Xcode to the same behaviours in VSCode

0xTim commented 3 years ago

cc @toddvarland ☝️

VineFiner commented 2 years ago

Does DocC help?

0xTim commented 2 years ago

@VineFiner How would DocC help?

VineFiner commented 2 years ago

How does swift server provide its own api documentation? Are there any best practices. I know OpenAPIKit

0xTim commented 2 years ago

I'm confused, what's API documentation got to do with a VSCode guide?