Configure Visual Studio Code for Swift development

1. Build sourcekit-lsp

https://github.com/apple/sourcekit-lsp#building-sourcekit-lsp

$ git clone https://github.com/apple/sourcekit-lsp.git
$ swift package update
$ swift build

The sourcekit-lsp will be here:

/Users/zhihuitang/repo/common/sourcekit-lsp/.build/x86_64-apple-macosx/debug/sourcekit-lsp

2. Configure sourcekit-lsp

In the sourcekit-lsp settings, set the Language Server Mode to sourcekit-lsp

Set Server Path:

About Tang

A mobile developer, work in Stockholm, Sweden
This entry was posted in iOS and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s