CodeEdit

CodeEdit: Open Source Alternative to VS Code

Native macOS code editor in Swift — lightweight, open-source, and free forever.

Open source alternative to:VS CodeSublime TextNovaJetBrains

CodeEdit is a native macOS code editor with 22k+ GitHub stars — a free, open-source alternative to VS Code built entirely in Swift. Community-driven and free forever, it targets Mac developers who want a lightweight, Apple-native experience without Electron.

Compare CodeEdit with Sublime Text and Nova before you choose your stack.

Key features

Native macOS experience

  • Built with Swift and SwiftUI — no Electron, full Apple HIG compliance
  • Lightweight like TextEdit, scalable toward an Xcode-like experience when needed
  • Familiar UI designed for productivity on Mac
  • Supplements Xcode for non-Apple-platform projects

Editing & tooling

  • Syntax highlighting powered by Tree-sitter (CodeEditSourceEditor)
  • Code completion, snippets, and project find-and-replace
  • Integrated terminal, task running, and debugging
  • Git integration and code review workflows
  • Extension system via CodeEditKit (in progress)

Community

  • Open source and free forever — MIT licensed
  • 140+ contributors, active GitHub community
  • Roadmap driven by issues and pull requests

CodeEdit vs VS Code

CodeEditVS Code
LicenseMIT (open source)Proprietary
ModelsBring your own keys / local modelsVendor-locked models
DeploymentSelf-hosted or cloudSaaS only
PrivacyData stays on your infrastructureProcessed by vendor
CostFree software + API usageSubscription pricing

Choose CodeEdit if you want open-source code, self-hosting options, and full control over your data and deployment.

Choose VS Code if you prefer a managed proprietary product with vendor support and minimal setup.

Browse more open-source alternatives to VS Code, or explore other tools in Developer Tools.

At a glance

LicenseMIT
PlatformmacOS only
StackSwift, SwiftUI, Tree-sitter
Latestv0.3.6 (pre-release)
Self-hostedDesktop app
Alternative toVS Code, Sublime Text

Note

CodeEdit is not meant to replace Xcode for Apple platform development — it complements it for web, backend, and cross-platform work with a native Mac feel.

FAQ

Is CodeEdit a free alternative to VS Code?

Yes. CodeEdit is open source under MIT. You can self-host it at no software cost — you only pay for infrastructure or optional managed services.

How does CodeEdit compare to VS Code?

CodeEdit gives you source code access, self-hosting, and data ownership. VS Code is a proprietary product focused on managed convenience. See the comparison table above for a side-by-side breakdown.

Can I self-host CodeEdit?

Yes. CodeEdit supports self-hosted deployment, which is a core reason teams choose it over VS Code. Check the Getting started or Self-hosting section for install commands.

Is CodeEdit suitable for production?

CodeEdit is actively maintained with a strong open-source community. Many teams run it in production as a Developer Tools alternative to VS Code. Review the At a glance table for license and stack details.

What are alternatives to CodeEdit and VS Code?

Browse alternatives to VS Code for more open-source options, including tools compared to Sublime Text. Explore the full Developer Tools category for related projects.

Screenshots

CodeEdit screenshot 1

Tags

code-editorideswift

Built with

SwiftSwiftUITree-sitterAppKit