Settings
Open Etch's settings, choose user or workspace settings, and find the ones to set first.
Etch’s settings are in VS Code’s Settings, under Etch. Most people need none of them: Etch
finds the game through Steam, and previews with your mod and the mods its descriptor names as
dependencies.
Open Settings
Section titled “Open Settings”- Press Ctrl+,, or choose File › Preferences › Settings.
- Type “etch” in the search box at the top: Etch’s settings show under Etch.
They come in four groups, which the list at the left of Settings also shows under Etch:
- Game: the game folder (
etch.gamePath) first, then the playset and the language; - Editor: what Etch adds to the editor, such as completion and the grey texts after localisation keys and province IDs;
- Preview: the screen size the preview lays windows out on;
- Live Game: checking files on save and the pick mode key.
User and workspace settings
Section titled “User and workspace settings”Settings has two tabs, User and Workspace:
- A User setting counts for all your mods, whichever folder you open in VS Code.
- A Workspace setting counts only for the mod folder you have open now. VS Code keeps it in a
.vscodefolder inside that folder. It wins over the same setting in User.
The game folder is usually the same for all your mods, so etch.gamePath fits in User. Each
mod has its own playset, so etch.playset fits in Workspace.
etch.liveGame.pickModeKey, the key that turns pick mode on and off,
can be set only in User. In pick mode, a click on a widget in the game opens where it is
written.
Settings to set first
Section titled “Settings to set first”Set these two when Etch does not find what you need on its own:
etch.gamePath: the game folder, the one that holdseu4.exe, when Etch does not find it through Steam, for example a GOG game.etch.playset: the mods to preview with, in load order, when you need other mods than yours and the ones its descriptor names underdependencies.
Where Etch finds the game explains both.
The list of every Etch setting follows.
Every setting
Section titled “Every setting”| Setting | What it does | Default |
|---|---|---|
etch.gamePath |
The Europa Universalis IV game folder, the one that holds eu4.exe. When empty, Etch finds it through Steam’s library list. Etch only reads this folder. |
Empty |
etch.playset |
Mods to preview with, in load order (a later mod’s file wins), as mod names or as mod folders or .mod descriptors. When not empty it replaces the default playset: the edited mod and the dependencies of its descriptor. The edited mod is added last unless the list names it. |
Empty list |
etch.language |
The language of the localisation texts that the preview shows in a .gui file, and that the editor shows after each localisation key. One of english, french, german or spanish. |
english |
etch.editor.completion |
Suggest words as you type in .gui files: widget types, keys, sprite names, fonts and values, taken from your playset (the game, your mod and the mods it depends on). |
true |
etch.editor.localisationHints |
Show the text of a localisation key, in #etch.language#, in grey after the key: in .gui files after text, tooltip, tooltipText and delayedTooltipText; in the scripts of events, decisions, missions and common after title, desc, name, tooltip and custom_tooltip, and in common also after war_name, prov_desc, country_desc, elector_relation, demands_description, mercenary_desc_key, custom_ai_explanation, reform_tooltip, alert_tooltip, crusade_name and cooldown_desc. Ctrl+click a key to open its line in the .yml file. |
true |
etch.editor.provinceNames |
Show a province’s name, in #etch.language#, in grey after its id in script files: after owns = 151, a 151 = { … } scope and the other values that Etch: Check Province IDs and Names in the Playset reads as province ids. The name is the playset’s localisation key PROV151. |
true |
etch.editor.rename |
Find All References (Shift+F12) and Rename Symbol (F2) on sprite names: in .gfx and .gui files and in the script files that name sprites: an event’s picture, a mission’s icon, an estate privilege’s icon and the sprite keys of ten common folders (see Hovers and links in Etch’s guide). A rename changes only your mod’s files. Turn it off if another extension already finds or renames these names: Etch then adds neither, and the other extension’s answers stand alone. |
true |
etch.cwtools |
What Etch does when CWTools is on too. With auto, in files that CWTools reads as EU4, Etch leaves to CWTools what CWTools’ EU4 rules cover: Go to Definition on those sprites, their entries and the fonts in the Outline of a .gfx file, and the widget types and keys suggested in .gui files. Etch’s warnings about .gui keys and values the game does not read, and about a missing sprite or font after a key those rules check, then come from CWTools too. Etch’s hovers, its sprite and font suggestions and the preview’s other warnings in the Problems panel stay. With ignore, Etch gives all its answers, so some of them show twice. One of auto or ignore. |
auto |
etch.editor.spriteThumbnails |
Show a small picture of each sprite beside the line numbers, on the lines of a .gui file or a script file that name a sprite: an event’s picture, a mission’s icon and the other keys listed in Etch’s guide under Hovers and links. A strip shows its first frame. Up to 500 pictures per file. |
false |
etch.previewResolution |
The screen size the preview lays windows out on and evaluates if_resolution blocks against: default (the resolution in the game’s settings.txt, else the monitor’s), native (the monitor’s resolution), or a width × height such as 1920x1080. UI scale is always 1.0. The command Etch: Choose the Preview Resolution also offers the corpus resolutions. |
default |
etch.liveGame.checkOnSave |
Check an event, decision, mission, scripted effect or scripted trigger file in the live game each time you save it, as Etch: Check File in the Live Game does. The game reads the file’s triggers and effects but runs none of them. What it finds appears in the Problems panel, with no notice. Needs a running live game with a save loaded; otherwise saving checks nothing. | false |
etch.liveGame.pickModeKey |
The key that turns pick mode on and off in the live game: Ctrl or Alt, with Shift if you like, and a letter, a digit or F1-F24. The game binds nothing to the default Ctrl+Shift+E; Esc is never taken. A change applies to a running live game at once. Only in User settings. |
Ctrl+Shift+E |