Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>SwiftNew to Visual Studio Code? Get it now.
Swift

Swift

Swift

swift.org
|
106,638 installs
| (11) | Free
Swift Language Support for Visual Studio Code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Swift for Visual Studio Code

This extension adds language support for Swift to Visual Studio Code, providing a seamless experience for developing Swift applications on all supported platforms. It supports:

  • Code completion
  • Jump to definition, peek definition, find all references, symbol search
  • Error annotations and apply suggestions from errors
  • Automatic generation of launch configurations for debugging with LLDB DAP
  • Automatic task creation
  • Package dependency view
  • Test Explorer view

Documentation

The official documentation for this extension is available at vscode-swift

This extension uses SourceKit LSP for the language server, which powers code completion. It also has a dependency on the LLDB DAP extension to enable debugging.

To propose new features, you can post on the swift.org forums in the VS Code Swift Extension category. If you run into something that doesn't work the way you'd expect, you can file an issue in the GitHub repository.

Contributing

The Swift for Visual Studio Code extension is based on an extension originally created by the Swift Server Working Group. It is now maintained as part of the swiftlang organization, and the original extension is deprecated. Contributions, including code, tests, and documentation, are welcome. For more details, refer to CONTRIBUTING.md.

To provide clarity on the expectations for our members, Swift has adopted the code of conduct outlined in the Contributor Covenant. This widely recognized document effectively encapsulates our values. For more information, please refer to the Code of Conduct.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft