Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>EtchNew to Visual Studio Code? Get it now.
Etch

Etch

Happy Dwarf Team

|
15 installs
| (0) | Free
Preview Europa Universalis IV interface mods while you edit them.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Etch

Etch is a Visual Studio Code extension for Europa Universalis IV 1.37.5 mods. It draws your mod's interface windows beside the editor, and draws them again as you type. It shows your textures, meshes, units and ships. It starts EU4 itself beside the editor, with your mod, and loads the files you save into it. And it finds mistakes in your scripts that the game does not report.

Docs: etch.happydwarf.dev/docs explains every feature and setting. Website: etch.happydwarf.dev.

Get started

You need Windows (x64), Visual Studio Code 1.100 or later and EU4 1.37.5. Etch comes with no game files: it draws with your game's own, and with those of every DLC you have not turned off in the game's launcher (The DLCs). It finds a Steam copy of the game by itself. For a GOG copy, or a game it does not find, put the game folder in the setting etch.gamePath. The live game, EU4 itself started by Etch beside the editor, needs the Steam version of 1.37.5, exactly (Install and requirements).

Then open your mod's folder in VS Code, open a .gui file and run Etch: Open Preview from the Command Palette (Ctrl+Shift+P). The preview opens beside the editor: Your first preview.

After the install, VS Code opens Get Started with Etch on its Welcome page. Its six steps show the main things Etch does, each with a button that does it. To open it again, run Etch: Get Started (The Get Started page).

Etch adds no colours to the text of script files: .gui, .gfx, .asset and the .txt files of folders such as common and events. CWTools and ParadoxCode colour them (ParadoxCode only from the VS Code Marketplace). When you open a script file and neither is installed, a notification at the bottom right offers to install one (Coloured text in script files). CWTools colours a mod's .txt files only inside a folder named Europa Universalis IV. For a mod kept elsewhere, Etch offers to add a setting to the mod's folder so that CWTools colours them there too (A mod in a folder of its own). On Windows, CWTools shows no problems in an editor that runs without telemetry, and Etch warns you once (CWTools without telemetry). When CWTools could not download its EU4 rules and checks your files with none, Etch says so once (CWTools without its EU4 rules).

If you used Etch 1.x: its game host, a hidden copy of the game that drew the preview, is gone in Etch 2, and the live game takes its place. To stay on 1.0.x, see Etch 1.x.

Interface windows

The preview draws the window your text cursor is in, close to how the game draws it, and draws it again as you type. While it is open, missing sprites, fonts and textures show as warnings in the Problems panel.

For many windows of the base game and of some mods, such as Anbennar, the preview draws one view, one situation as the game shows it, such as your own province; View ▾ picks another. In those windows, sample data fills the texts the game's code writes, such as a province's name. The Widget Outline, in the Explorer, lists the window's widgets. As you type in a .gui file, Etch suggests widget types, keys, sprites and fonts. To jump to a widget, sprite or font by its name, press Ctrl+Shift+O (Jump to a widget by name).

Textures and meshes

A .dds or .tga file opens in the texture preview. A .mesh file opens in the mesh preview, where you turn the model and play its animations. In an .asset file, click Preview Entity above an entity = { … } to see that unit or ship. While it plays an animation, such as attack, Etch draws its particle effects, such as a cannon's smoke, close to how the game draws them. Etch draws a map tree's mesh as the game draws it on the map. Hover over the name of a texture, mesh or sprite in your files to see it, and Ctrl+click the name to open the file that holds it. On a sprite name, Shift+F12 lists every file that uses it and F2 renames it in your mod. Font colours in .gfx files get VS Code's colour picker (Hovers and links).

The live game

The live game is EU4 itself, with your mod and the mods it depends on, beside the editor. Start it with Etch: Start the Live Game and play as usual.

  • Save the .gui file of a window such as the province view, a localisation file or a texture, and the game loads it again: the change shows in its own window. Other files, such as .gfx files and events, need a restart, which Etch does when you click Restart Now.
  • In pick mode, which Ctrl+Shift+E turns on in the game, click a widget: VS Code opens the line that defines it.
  • A live snapshot copies a window's texts and shown widgets from the game into the preview.
  • Run selection runs in the game the effect you select in the editor, or says whether a trigger is true.
  • Check File lets the game read the triggers and effects of an event, decision or mission file without running them, and shows what it complains about in the Problems panel, on your lines.

Live game in the status bar, at the bottom left, shows the game's state. Once the game is ready, click it for a menu with Turn Pick Mode On, Snapshot from the Live Game, Restart the Live Game, Stop the Live Game and more (The live game in the status bar).

Scripts

Etch warns about province IDs and names that the game does not check and can crash on, such as owns = 5075 on a map of 4941 provinces. It warns where the game would read other letters than you see, and offers to fix the file's encoding. After a localisation key, such as an event's title, it shows the key's text in grey, and its hover shows the whole text in the game's colours. After a province ID, such as owns = 151, it shows the province's name. Anvil, which lets EU4 load plugins, can time your triggers and effects while you play: Etch: Show the Latest Script Profile opens what it measured, with links to your files (Script profile).

What Etch reads and writes

Etch reads your game folder, your mods and your EU4 profile, the folder where the game keeps your settings, saves and mods. It never changes the game folder or your profile, and it writes into your mod only when you ask, for example when you save a view. It sends nothing anywhere and collects nothing about how you use it. Report to Etch…, a quick fix in the Problems panel, only opens a filled-in bug report on GitHub in your browser, and you send it yourself. See What Etch reads and writes and Limits.

More from the Happy Dwarf Team

  • Anvil: lets EU4 load plugins, add-ons to the game's own program. The live game runs on it.
  • Tongs: an Anvil plugin that lets other programs control a running game. Etch only reads the live game's widgets through it.
  • happydwarf.dev: all of the team's projects.

Feedback

Report a bug or an idea on Etch's GitHub issues page. Copy into it the first line of Etch's log (View › Output, then Etch in the list at the top right of the panel), such as "Etch 2.0.0 (abc1234) for EU4 1.37.5": it names your version. The changelog lists what each release changed.

A question, or not sure it is a bug? Ask in the #help-and-bugs channel (with the Etch tag) or in #modding on the team's Discord server. Bugs the team confirms there are written down on the GitHub issues page too.

License

Etch is free, under the MIT License.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft