Paradox Language Features for Visual Studio Code
Disclaimer
This extension is still in preview, it may not work, it may stop working at any time.
Make backups of your mod files.
Supported games
- Stellaris
- Hearts of Iron IV
- Europa Universalis IV
- Imperator: Rome - outdated, help needed
- Crusader Kings II - partial
- Crusader Kings III - in progress, help needed
- Victoria 3 - in progress, help needed
Features
- Immediate highlighting of syntax errors
- Autocomplete while you type, providing descriptions when available
- Tooltips on hover showing:
- Related localisation
- Documentation for that element
- Scope context at that position
- A wide range of validators for common, interface, and events, checking
- That required localisation keys are defined
- Existence of effects/triggers/modifiers
- Scope context for used effects/triggers/modifiers
- Usage of scripted effects/triggers
- Correct entries for weights/AI_chance/etc
- That event_targets are saved before they're used
- That referenced sprites and graphics files exist
- and a number of other specific validators
- "Code actions" to generate .yml for missing localisation
Usage
- Install this extension
- Open your mod folder directly, which should be within a folder containing the game name:
C:\Users\name\Documents\Paradox Interactive\Stellaris\mod\your_mod
- Follow the prompts to select your vanilla folder
- Edit files and watch syntax errors show up when you make mistakes
- Wait up to a minute for the extension to scan your mod and find errors
Multiple mods - workspace
If you have multiple mods that need to be loaded at once, use VS Code's multi-root workspace feature.
- Open your first mod
- Use "File", "Add folder to workspace" to add your next mod
- cwtools should reload including both mods and vanilla in context using correct mod load order
If you want to browse vanilla files, you can use the "CWTOOLS LOADED FILES" section in the Explorer tab.
Completion



Scope errors

Localisation error

Go to definition

Find all references

Links
| |