EXPERIMENTAL: Swift language support for Atom-IDE. C, Objective-C, C++ support in the works.
This package provides the following services:
This package consumes the following services:
IDE-SourceKit package
C, C++, Objective-C, and Swift language support for Atom-IDE, powered by the SourceKit Language Server by Apple (only on Macos or Linux).
Getting Started
Installation
Install these the needed packages from: ide-sourcekit and atom-ide-base.
or using command line:
apm install ide-sourcekit
apm install atom-ide-base
sourcekit-lsp
Path
Adding You need to have sourcekit-lsp on the PATH or add its full path inside the settings of ide-sourcekit
.
The current installation methods are:
-
If you have installed Xcode 11.4+ or the corresponding Command Line Tools package, the SourceKit-LSP server is included and can be run with xcrun sourcekit-lsp.
-
Download and install the Swift toolchain which includes
sourcekit-lsp
https://swift.org/download/#releases
Once installed add the location of sourcekit-lsp
binary to PATH or the settings of ide-sourcekit
Note: sourcekit-lsp
is not available on Windows. See here.
Reload
Once configured, reload Atom and open your project. Enjoy!
Features
- Autocomplete
- Document outline
- Find references
- Go to definition
- Hover
- Signature help