boxmoe_header_banner_img

Hello! 欢迎来到阿虪的开发世界~

加载中

文章导读

OpenIDEA:用 Rust 重写的 IntelliJ 式 IDE,打开项目只要 0.9 秒


avatar
阿虪 6 11 月, 2026 368
openidea

中文版

OpenIDEA(GitHub:https://github.com/l0ng-ai/openidea ,2026-10-21 创建,今晨抓取时已 6,757★)是把“你熟悉的 IDE”用 Rust 重写的开源项目:IntelliJ IDEA 的工作方式——快捷键、工具窗口、全局搜索的习惯——装进一个 Rust 核心的原生应用。编辑器、代码洞察、调试器、Git、终端、数据库与 HTTP 客户端齐全,支持 60+ 种语言,macOS、Windows、Linux 都有构建。

按 README 的实测,打开 freqtrade(Python,约 770 个文件),热缓存、取 5 次中位数:窗口出现 0.9 秒(IDEA 2026.2.3 是 3.1 秒)、就绪 1.1 秒(13.2 秒)、内存占用 169 MB(2011 MB)、退出 0.3 秒(5.9 秒)。作者也注明 IDEA 对 Python 的分析更深,“就绪”不代表做了同样多的工作,比较方法公开在 perf/compare 目录里,可以在自己的机器和项目上复跑。插件是沙盒化的 WebAssembly 组件,可加操作、补全、快速修复、工具窗口、自定义编辑器、主题、文件图标与语言;主题、图标主题与语言甚至不需要代码,从 设置 › 插件 安装,或用 openidea-plugin new 自己写。插件 API 目前仍是预览版。Apache 2.0 开源,与 JetBrains 无关联。

为什么值得了解

  • 对每天被 IDE 启动与索引拖慢的人,这是“换个更轻的壳、留住熟悉的手感”的方案:快捷键与工具窗口的习惯不用重学,启动与内存开销却小了一个量级
  • Rust 核心 + WASM 沙盒插件的组合值得学 IDE 架构的人参考:插件跑在沙盒里,主题与语言支持甚至不需要写代码
  • 但插件生态还处预览期,指望现成插件库齐全的人先别急着迁移主力工作流;作者的基准数据也提醒了一点——IDEA 分析得更深,单纯比启动速度不等于比全部能力

English Version

OpenIDEA (GitHub: https://github.com/l0ng-ai/openidea , created 2026-10-21, 6,757 stars at this morning’s fetch) is an open-source project that rebuilds “the IDE you know” in Rust: the IntelliJ IDEA way of working — its keymap, its tool windows, its search-everywhere habits — inside a native app with a Rust core. Editor, code insight, debugger, Git, terminal, database and HTTP clients are all included, for 60+ languages, with builds for macOS, Windows and Linux.

Per the README’s benchmark, opening freqtrade (Python, about 770 files) with warm caches, median of 5 runs: the window appears in 0.9 s (IntelliJ IDEA 2026.2.3 takes 3.1 s), ready in 1.1 s (13.2 s), memory usage 169 MB (2,011 MB), and quit in 0.3 s (5.9 s). The author also notes that IDEA analyses Python more deeply, so “ready” does not mean the same work on both sides; the comparison method is published in the perf/compare directory so you can rerun it on your own machine and projects. Plugins are sandboxed WebAssembly components that add actions, completion, quick fixes, tool windows, custom editors, themes, file icons and languages; themes, icon themes and languages need no code at all, installed from Settings › Plugins, or authored with openidea-plugin new. The plugin API is still a preview. Apache 2.0 licensed, not affiliated with JetBrains.

Why it’s worth knowing

  • For anyone slowed down daily by IDE startup and indexing, this is the “lighter shell, familiar habits” option: the keymap and tool-window muscle memory carries over, while startup and memory costs drop by an order of magnitude
  • The Rust core plus sandboxed WASM plugin combination is worth studying for anyone interested in IDE architecture: plugins run sandboxed, and theme and language support needs no code at all
  • But the plugin ecosystem is still in preview, so anyone expecting a complete ready-made plugin library should not migrate their main workflow yet; the author’s benchmark also carries a reminder — IDEA analyses more deeply, so startup speed alone is not the whole comparison


评论(0)

查看评论列表

暂无评论


发表评论

表情 颜文字

插入代码