Stellaris Language ServesEnglish | 中文 | GitHub | Report an issue EnglishBuild and maintain Paradox mods in VS Code with CWTools language support, Stellaris visual editors, vanilla comparison, Shader tooling, and an optional AI workspace. Start hereAfter installing the extension, open your mod folder in VS Code. On first use, select the vanilla game folder when prompted. CWTools loads the project and builds the indexes used by diagnostics, completion, navigation, and previews. The extension package includes the language-server binaries for Windows, macOS, and Linux. You do not need a separate .NET installation to use the packaged extension. Language support
Coverage depends on the active game profile and its CWT rules. Stellaris is the primary target for the bundled rules and visual tools. Stellaris visual toolsOpen a supported file and use its editor-title action or context menu:
Source changes use VS Code workspace edits and can be undone normally. Previews distinguish source-backed data from estimates; runtime-generated content is not presented as exact file data. Vanilla comparison and migrationUse Optional AI workspaceRun AI providers are configured separately. Credentials are stored with VS Code SecretStorage, and tool calls remain subject to the selected sandbox and approval policy. The ChatGPT-subscription-compatible Codex provider relies on an upstream compatibility endpoint and may need updates when that endpoint changes. Antigravity supports Google browser sign-in, account model and quota discovery, streaming replies, image input, and tool calls. Select it in AI Settings after completing account setup in Antigravity. Codex subscription and Antigravity (Gemini OAuth) share AI Settings → Subscription channel proxy: auto detection, custom HTTP/HTTPS/SOCKS5 proxy, or direct connection. Click Save proxy before signing in or testing. Proxy credentials are stored in VS Code SecretStorage. This covers token exchange and refresh, account queries, and chat; browser sign-in follows browser proxy settings. External agents through MCPThe separately released
DocumentationIf something behaves unexpectedly, please include the game profile, extension version, relevant file type, and reproducible steps in a GitHub issue. 中文在 VS Code 中使用 CWTools 语言服务开发 Paradox Mod,并按需使用 Stellaris 可视化编辑器、原版对比、Shader 工具和 AI 工作区。 开始使用安装扩展后,把 Mod 文件夹作为 VS Code 工作区打开。首次使用时,请按提示选择原版游戏目录。CWTools 会加载项目,并建立诊断、补全、跳转和预览所需的索引。 扩展包已经包含 Windows、macOS 和 Linux 的语言服务端。正常使用已安装的扩展不需要另外安装 .NET。 语言服务
具体覆盖范围取决于当前游戏 Profile 及其 CWT 规则。随扩展提供的规则和可视化工具主要面向 Stellaris。 Stellaris 可视化工具打开受支持的文件,再使用编辑器标题栏按钮或右键菜单:
源码修改使用 VS Code 工作区编辑,可以正常撤销。预览会区分源码数据和估算结果,不会把运行时生成的内容当作文件中的精确数据。 原版对比与迁移在有原版对应文件的 Mod 文件中使用 可选 AI 工作区运行 AI Provider 需要单独配置。凭据通过 VS Code SecretStorage 保存,工具调用仍受当前沙盒和审批策略限制。兼容 ChatGPT 订阅的 Codex Provider 依赖上游兼容端点;上游变化时,扩展可能需要同步更新。 Antigravity 支持 Google 浏览器登录、账户模型与额度查询、流式回复、图片输入和工具调用。先在 Antigravity 中完成账户设置,再到 AI 设置中选择该供应商。 Codex 订阅与 Antigravity(Gemini OAuth)共用 AI 设置 → 订阅渠道代理,支持自动检测、自定义 HTTP/HTTPS/SOCKS5 代理和直连。登录或测试前点击 保存代理。代理凭据保存在 VS Code SecretStorage,覆盖令牌交换与刷新、账户查询及聊天;浏览器登录页面遵循浏览器代理设置。 通过 MCP 连接外部 Agent独立发布的
文档与反馈如果遇到问题,请在 GitHub issue 中附上游戏 Profile、扩展版本、相关文件类型和可复现步骤。 |