Swift Code Completion#

Noctule’s code completion is based on SourceKit-LSP, Apple’s official Swift language server. Objective-C files are completed by the same server.

Suggestions are available in most contexts of Swift code.

Because the suggestions come from the language server, completion needs a configured Swift toolchain and a running SourceKit-LSP server. Click the Noctule icon in the status bar to see whether a server is running for the current file. Until it is up, you will only see suggestions based on the words in the current file.

Noctule contributes two further sources of suggestions on top of the ones from the language server:

Examples#

  • Variables#

  • Types#

  • Modules#