扩展 Swift 的 IDE 支持
Expanding Swift's IDE Support

原始链接: https://swift.org/blog/expanding-swift-ide-support/

## Swift 扩展 IDE 支持 Swift 开发现在比以往任何时候都更容易,对 Cursor、VSCodium、Kiro 和 Antigravity 等流行的 IDE 的支持得到扩展。这得益于官方 Swift 扩展在开源 Open VSX Registry 上的可用性,利用了 VS Code 扩展的兼容性。 Swift 之前已在 Xcode、VS Code、Neovim 和 Emacs 中得到支持,现在可以无缝集成到支持语言服务器协议 (LSP) 的编辑器中。随着 Swift 在各种平台(包括新兴的代理 IDE)上获得发展,这种更广泛的生态系统至关重要。 该扩展为 Swift 包管理器项目提供全面的语言支持——包括代码补全、调试、重构、测试和 DocC 集成,适用于 macOS、Linux 和 Windows。安装很简单:在编辑器的扩展面板中搜索“Swift”。Cursor 用户可以从专用的设置指南中受益,以优化 AI 工作流程。此举旨在满足开发者的需求,并促进 Swift 的更广泛采用。

## Swift IDE 支持与生态系统讨论 这次黑客新闻讨论的核心是改进 Swift 在 Xcode 之外的开发体验。一个关键点是 Swift 工具通过 Open VSX Registry 在 VS Code 中的可访问性得到改善,解决了微软对分支的限制造成的问题。 用户们讨论了 Xcode 的替代方案,一些人强调了 Noctule 和 SweetPad 等插件的实用性。关于 Swift 在 iOS 开发之外的可用性存在争论,一些人指出 C 互操作性的近期改进以及由于 AI 辅助,移植库的可行性正在提高。 对话还涉及 Android 和 iOS 开发环境的局限性——特别是与 Apple 工具的锁定相比,Android SDK 更加开放。 许多评论者表达了对 JetBrains 的 AppCode 回归的渴望,以及更灵活的 iOS 开发选项的可能性。最后,出现了一个小众请求,希望开发一种基于 Swift 的、可自我修改的 IDE,类似于 Oberon µSystems。
相关文章

原文

You can now write Swift in a broader range of popular IDEs, including Cursor, VSCodium, AWS’s Kiro, and Google’s Antigravity. By leveraging VS Code extension compatibility, these editors tap directly into the Open VSX Registry, where the official Swift extension is now live.

Swift has long supported development using multiple IDEs including VS Code, Xcode, Neovim, and Emacs. Swift is also compatible with editors that implement the Language Server Protocol (LSP). This growing ecosystem of editor support is particularly significant as Swift continues to show its versatility across platforms and development environments, including agentic IDEs.

The Swift extension for VS Code is now officially available on the Open VSX Registry, the vendor-neutral, open source extension registry hosted by the Eclipse Foundation. The extension adds first-class language support for projects built with Swift Package Manager, enabling seamless cross-platform development on macOS, Linux, and Windows. This milestone brings Swift support, including code completion, refactoring, full debugging support, a test explorer, as well as DocC support, to a broader ecosystem of compatible editors and allows agentic IDEs like Cursor and Antigravity to automatically install Swift, with no manual download required.


Swift in Cursor, powered by the Swift extension on Open VSX.

Swift in Cursor, powered by the Swift extension on Open VSX.

To start using the Swift extension in any Open VSX-compatible editor, simply open the Extensions panel, search for ‘Swift’ and install the extension.

If you’re using Cursor, getting started is easier than ever. Check out our new dedicated guide: Setting up Cursor for Swift Development. It walks you through the setup, features and includes how to configure custom Swift skills for your AI workflows.

Swift now has support for a wider range of modern editors and IDEs to meet developers where they are. Download the extension, try it out in your editor of choice, and don’t forget to share your feedback!


联系我们 contact @ memedata.com