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. 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 依赖上游兼容端点;上游变化时,扩展可能需要同步更新。 通过 MCP 连接外部 Agent独立发布的
文档与反馈如果遇到问题,请在 GitHub issue 中附上游戏 Profile、扩展版本、相关文件类型和可复现步骤。 |