Skip to content

cwtools/cwtools-vscode

Repository files navigation

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

Completion

Completion

Tooltips

Tooltips

Scope tooltips

Scope tooltips

Scope errors

Scope

Localisation error

Localisation error

Go to definition

Go to definition

Find all references

Find all references

Usage

  1. Install this extension

  2. If on linux, possibly follow these instructions

  3. If on linux, install libcurl3

  4. Either open your mod folder directly

  5. or open the Game folder containing your mods. E.g. for Stellaris this can be one of:

    • "C:\Users\name\Paradox Interactive\Stellaris"
    • "C:\Program Files(x86)\Steam\steamapps\common\Stellaris"

    or on linux

    • "/home/name/.local/share/Paradox Interactive/Stellars"
    • "/home/name/.steam/steam/steamapps/common/Stellaris"
  6. Follow the prompts to select your vanilla folder

  7. Edit files and watch syntax errors show up when you make mistakes

  8. Wait up to a minute for the extension to scan all your mods and find all errors

Links

About

A VS Code extension providing language server support for paradox script files using cwtools

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages