Editors
Local worker declarations share normal function navigation and diagnostics.
Hovers and symbol outlines identify them as local worker; syntax highlighting
recognizes the modifier without reserving worker as an ordinary variable name.
Choose your editor
Install Tide first, then choose your setup:
| Editor | Setup with Tide | Install through your editor's package manager |
|---|---|---|
| VS Code, Cursor, VSCodium and Windsurf | tide editors |
Installed by Tide |
| JetBrains IDEs | Installed with Tide; run tide editors for a new IDE |
Bundled plugin; Marketplace also available |
| Emacs 29.1+ | tide ide emacs |
tide-emacs with built-in package-vc |
| Vim 8+ | tide ide vim |
tide-vim with vim-plug |
| Neovim 0.11+ | tide ide neovim |
tide-vim with lazy.nvim |
For Emacs, Vim and Neovim, the tide ide commands print configuration to copy
into your init file; the modes and matching language server already come with
Tide. If you prefer your existing package manager, follow the install examples
in Emacs or Vim and Neovim below instead.
Choose one installation method per editor.
VS Code and JetBrains select a trusted project's pinned Tide version for both
the compiler and language server. Standalone games use tide = <version> in
tide.packages; Unity projects use their locked Tide package and the installation
Unity selected. Open Unity once to resolve and install that version. Installations
selected with Unity's -tide-command <path> are used only while that editor
process is alive; closing it or a crash returns the IDE to the pin. Installations
are shared in TIDE_VERSIONS (by default %LOCALAPPDATA%/Tide/versions or
~/.tide/versions). A missing pinned version is reported rather than silently
using another. Package/lock changes restart the language server; separate VS Code
workspace folders and separate JetBrains projects can use different versions.
Explicit executable settings and a trusted engine checkout's built server take
precedence. In VS Code, tide.path also selects its sibling language server unless
tide.server.path is set. Emacs/Vim/Neovim retain their configured server command.
The standalone Emacs and Vim/Neovim plugins are MIT-licensed. Emacs users:
the mode is available directly from GitHub now, but is not listed on MELPA yet.
The plugins need Tide installed separately for its tidels language server.
Language server features
Tide's language server, tidels, comes with tide. Open your game's folder, the one you run tide run in, and every .tide file in it is one game, with its packages. The server provides these features across the game; which appear depends on your editor's language server client:
- Image attribute completion offers
[Linear]for assets and fields; hover explains sRGB sampling, alpha, valid formats and source-preserving GPU helpers.Math.ToLinearandMath.ToDisplayoffer scalar, float3 and Color signatures. - Completion, and errors as you type, with quick fixes: a name spelled wrong, a missing
mut, a missing or strayout, an error nothing handles, a name from another namespace, a local that's never read (which is faded), and a parameter that's never used (removed, or a component's made awithfilter). - Enum assignments prioritize and preselect the expected enum type: after
zombie.state =,ZombieStatecomes first, followed by its qualified members. With enum shorthand,zombie.state = .offers just that enum's members. A leading dot also completes members in typed declarations, returns, comparisons, enum switch cases and arguments whose parameter type is unambiguous. - Hovers, go to definition or to a value's type, find usages, the uses of a name highlighted, and rename. A prefab's hover is the prefab as its file writes it, its components and entities (a big one's first lines), and for one made in Unity, the Unity asset it's of.
- Go to implementation, from an event to its handlers, from the input to its
Sample,SanitizeandPredictand from avirtualdeclaration to its override, and the call hierarchy: what calls a function, and what it calls. - Formatting, of a file or a selection, parameter hints and inlay hints. Parameter hints list every function that shares the name being called, with every parameter and its default, and follow an argument written by name; where an argument starts, completion offers the names the other parameters go by. Inlay parameter hints label written literal arguments; omitted defaults and arguments already written by name have no label.
- The outline, symbols across the workspace's games, folding, growing a selection, and semantic highlighting. A shared package contributes the declarations active in each game that uses it, with identical symbols listed once.
- After
asset, completion offers the supported asset types as you start typing, with forms such asMesh<Vertex3>,Grid2<Color>andMap<string, Texture>. Inside a list or map, it offers the supported element types; mesh vertex and contract arguments offer structs. Assets also complete by name, with their type's methods and parameter hints, includingTexture.Samplein a frag or vert. They highlight as ordinary read-only variables; fields use the editor's property styling. The editor's theme chooses their colors. - A known skinned model or animation asset exposes its clip names in completion:
hero.animations.idleormovement.run. Hover shows each clip's original source name, and a model exposes its bone names,defaultPose,blendShapesandShapedtoo. The editor reads the glTF JSON or FBX catalog without importing geometry or animation samples; invalid or unavailable metadata is diagnosed separately from an absent clip. Their asset paths complete.glb,.gltfand.fbxfiles. - Moving a declaration to a file of its own.
- In a Unity project, a rename also edits the prefabs and scenes that use the name and the project's C#: a component, field, singleton, event, command, struct, enum, enum member or namespace renamed in Tide is renamed in the scripts of
Assetsand of the project's embedded and local packages, as the C# twins inPackages/com.tide.gamename it (_added where C# needs it). Only references known to be the game's are edited: a member of a value known to be of the game's type (declared as it, a cast,as, a pattern, a generic call, or a field, property or method of the project's own classes, partial ones too), a type or namespace the file's usings make the game's, and doc comments'crefs. Other comment text, strings, other types' members of the same name and names a type of the project's own also has are left alone. - Enum completion includes
EnumType.Count()andEnumType.Values(); hover and signature help explain the compile-time member count and the array of every member, with its length. A cast written as(int)valuereports the Tide spelling,int(value). - Assets kept in step with their files: renaming a file an
assetnames, or a folder above it, in the editor rewrites every path to it, in every file of the game and its packages, each relative to its own file (a glob isn't rewritten: a file it stops matching gets an error instead). Changes to watched asset files refresh their diagnostics, including external glTF buffers and replacement files that keep the same size and timestamp. A file moved outside the editor is found again by its bytes, whichtidelsandtidekeep the SHA-256 of in the game's.tide/: the error says where it is now, with a quick fix that writes the path, or else lists the files of that name, a fix each. Inside anasset's path, completion offers the folders and files it can lead to, the type's own files (.png,.psd,.jpg,.jpeg,.tgaand.bmpfor aGrid2<Color>,Texture,CubemaporTextureArray;.wav,.ogg,.mp3and.flacfor aClip;.glb,.gltf,.fbxand.objfor aMesh;.glb,.gltfand.fbxfor aSkinnedMesh,AnimationorAnimationCatalog), and*and**/*with each accepted format for a list, map, cubemap, texture array or combinedAnimationCatalogcatalog. Each literal in an animation file list supports the same path completion and rename edits; checked clip completion cleans exporter names and shows original names and source filenames on hover. Hovering aMeshasset says what its file has: how many vertices and triangles, and whether it has normals, uvs, colors and tangents for the vertex struct to take. - Each system's place in the schedule above it: its stage, what it reaches through its
World, each system it waits for and why, what runs alongside it, and for a system that runs for each entity, whether its entities go across threads or what keeps them on one (clicking that goes to the place in its code). A part that names a system goes to it when clicked. - Above a declaration a package replaced, which package did, and above an override, what it replaces. A click goes to the other.
- Above a declaration, how many places name it ("3 references"), which a click lists: types, functions, methods, constants, assets, frags and verts, where "0 references" is code nothing uses. A system, view or handler has the line only when a
[Before]or[After]names it. - Above functions and methods, an entry points lens traces callers through helpers to the systems, views, event handlers or commands that can reach them. Input
Sample,SanitizeandPredict, customInterpolatemethods and audio callbacks are entry points too. Clicking a single entry point goes to its declaration; several open a list to choose from. Each entry point counts once, even through several paths or recursive calls. This is static call reachability, independent of runtime branches; tracing stops at handlers rather than following event sends or command calls. A helper with no known root says 0 entry points. The call hierarchy lets you inspect the intermediate calls.
VS Code, Cursor, VSCodium and Windsurf
VS Code and JetBrains recognize .tprefab files as Tide. They use the same
game/package context as scripts, report invalid authored components and references,
and include prefab files when renaming components, fields and named prefabs.
Language-server rename/completion for authored entity names and paths remains
limited. See
Authored prefabs for the text format.
The installer adds Tide to the ones it finds, and tide upgrade keeps it up to date. Installed one later? Run:
tide editorsAn editor window that's open gets a newer extension once it's reloaded: Developer: Reload Window.
Renaming a file or a folder in the Explorer asks tidels first, so the paths of the assets it holds follow it; the extension asks only about the files assets name, and the folders above them. Moving several files together updates all their asset paths in the same edit, across the games and shared packages affected by the move. A shared package's assets update every consuming game in the workspace. CMake games that list individual files with SOURCES work the same way.
The extension runs tidels from your PATH, or from where tide is installed; in a folder with a build/tools/tidels, like Tide's own repo once it's built, it runs that one. The tide.server.path setting runs another one: in it, ~ is your home folder, and ${workspaceFolder} and relative paths are the folder whose settings set it. After updating the server, run Tide: Restart Language Server. The tide.trace.server setting shows what the editor and the server say to each other, in the Tide Trace output.
In a folder you haven't trusted (VS Code's Restricted Mode), nothing from it runs: the server is the tidels that comes with tide, or one your user settings name outside the workspace. Servers on PATH inside the workspace are skipped too, including paths through symlinks or junctions. Games don't run, since running one runs its code. Trusting the folder restarts the server.
Running the game
The play button above a .tide file runs its game, which is the folder you opened, or the folder of the game it's in when that has a tide.packages of its own; a package's file runs the open game that lists it:
- Tide: Run plays it in a window of its own, as
tide rundoes. - Tide: Run on the Web plays it in a browser tab beside your code: VS Code's integrated browser, or the Simple Browser in editors without it. A game only gets keys while its tab has focus, and the editor may pause it while its tab is hidden, so keep it in a group of its own.
- Tide: Run on Android plays it on the Android phone or emulator that's connected, as
tide run --androiddoes (see Android).
Each runs tide run in a terminal of its own, so saving a file reloads the game (on Android, builds it again and starts it over), and typing r and Enter in that terminal starts it over. Running it again starts the game over. The first run on Android may ask to download Android's tools from Google: type y and Enter in that terminal to accept. The tide.path setting runs another tide.
Starting a replacement waits for the preceding run's processes to stop. Closing its terminal stops the run too. If the editor cannot confirm cleanup, it explains how to stop the remaining processes before running again.
On the web, each reload says what it did in the page's console: Tide: Game Developer Tools shows it.
Graphs
A .tidegraph file opens in Tide's graph editor, the same as JetBrains' and close to Unity's (see Visual scripting). It's VS Code's document underneath: saving, undo from the Edit menu, hot exit and git's diffs are of its JSON, and Reopen Editor With > Text Editor shows that. tidels checks the graph as it's edited, unsaved, with the rest of the game. Tide: Convert to Tide Graph, on a .tide file in the Explorer or the editor, makes a graph of it with tide graph, and Tide: Show as Tide opens the Tide a graph stands for.
Debugging
Breakpoints go in .tide files, and the Tide debug configurations (Run and Debug, then add a configuration) stop at them, with your values shown as Tide's: Attach to Unity (Tide), Debug Tide game, which builds the game to debug and starts it, and Attach to Tide game (tide run), for the game Tide: Run plays. They use Microsoft's C/C++ extension on Windows, and LLVM's LLDB DAP or CodeLLDB on macOS and Linux. In Restricted Mode they don't start. See Debugging.
JetBrains IDEs
CLion, Rider, IntelliJ and the others, 2024.2 or later: Tide's installer adds
the bundled plugin to existing IDE profiles. It includes LSP4IJ when that
dependency isn't installed, without a Marketplace download. tide upgrade
updates Tide in profiles that already have it, using the plugin from the same
Tide release.
For an IDE installed later, open it once to create its profile, then run:
tide editorsRestart the IDE after installation or an upgrade. If it holds the plugin's
files open, close it and run tide editors again. Other plugins, settings and
an existing LSP4IJ installation are preserved. A disabled Tide plugin stays
disabled.
Discovery uses the standard JetBrains profile locations on Windows, macOS
and Linux (including Linux's XDG_CONFIG_HOME and XDG_DATA_HOME). Custom
idea.config.path or idea.plugins.path locations need manual installation.
You can also install Tide through Settings > Plugins > Marketplace;
Marketplace updates follow its chosen channel independently of your CLI.
The plugin runs the tidels chosen under Settings > Languages & Frameworks > Tide, if any; else the project's own build/tools/tidels, like Tide's repo once it's built, once you trust the project; else the one on your PATH, or where tide is installed. When there's none, .tide files say so above the code, with links to install tide, choose a tidels, or try again. The Language Servers tool window restarts the server, after an update, and shows what it and the IDE say to each other.
Renaming a file or a folder (Refactor > Rename, or in the Project view) asks tidels first, so the paths of the assets it holds follow it. LSP4IJ asks about every file, and tidels answers from the game's assets.
JetBrains' dark color schemes draw type names like plain text, so Tide's types stay uncolored until you pick colors. Each kind of type has its own color under Settings > Editor > Color Scheme > Language Server:
- Struct type: components
- Classes > Class reference and Class declaration: singletons
- Interface: inputs
- Type: built-in types such as
Color,EntityandDevices
Running the game
Right-click a .tide file and pick Run, or press Ctrl+Shift+F10 in it (Ctrl+Shift+R on macOS), to run its game, which is the project's folder, or the folder of the game it's in when that has a tide.packages of its own; a package's file runs the project's game when it lists the package. The run is named after the folder, like mygame:
- mygame plays it in a window of its own, as
tide rundoes. - mygame (web) plays it on the web, in the Tide Game tool window. Its Open DevTools button shows the page's console, where each reload says what it did. The game only gets keys while the tool window has focus.
- mygame (Android) plays it on the Android phone or emulator that's connected, as
tide run --androiddoes (see Android).
They're Tide run configurations, which you can also make and edit under Run > Edit Configurations, where Play it picks among the three. They use tide run. tide's output is in the Run tool window, where an error's place links to the file: saving a file reloads the game (on Android, builds it again and starts it over), and typing r and Enter there starts it over. The first run on Android may ask to download Android's tools from Google: type y and Enter there to accept. A run configuration can run another tide.
Graphs
A .tidegraph file opens in Tide's graph editor, the Graph tab, with its JSON in the Text tab beside it (see Visual scripting). Its edits are the IDE's: undo, local history and saving work as on any file. tidels checks the graph as it's edited, unsaved, with the rest of the game. Convert to Tide Graph, on a .tide file in the Project view or the editor, makes a graph of it with tide graph; Show as Tide opens the Tide a graph stands for. The graph editor is a web page, so it needs the IDE's JCEF browser, which JetBrains' runtime has: an IDE running on a runtime without it shows the graph as text, and says so above it.
Debugging
In CLion, breakpoints go in .tide files. Run > Debug Tide Game (also in a .tide file's context menu) plays the game as its run configuration does and attaches the debugger; Run > Attach to Unity (Tide) attaches to the Unity editor running the project. Both stop at your breakpoints and show your values as Tide's. On Windows, put the Visual Studio toolchain first, whose debugger reads the game's .pdb. See Debugging.
Emacs
Install with a package manager
The official tide-emacs repository can be installed directly with Emacs 29.1+'s package manager. Evaluate this once:
(require 'package-vc)
(package-vc-install
'(tide-lang-mode :url "https://github.com/Tide-Engine/tide-emacs"))Add this to your init file:
(require 'tide-lang-mode)
(add-hook 'tide-lang-mode-hook #'eglot-ensure)Install Tide separately and put tidels on Emacs's exec-path. The package
manager updates the mode; tide upgrade updates the compiler and server.
Use M-x package-vc-upgrade to update the mode. A MELPA recipe is prepared,
but the package is not listed there yet: its submission rules require a month
of public maintenance and human review.
Use Tide's bundled mode
Tide bundles tide-lang-mode for Emacs 29.1 or later. Run:
tide ide emacsCopy the result into your Emacs init file (usually ~/.emacs.d/init.el), then
restart Emacs. It loads the bundled mode, selects this installation's tidels
by its full path and connects through Eglot when you open a Tide file. Emacs
does not need tidels on its exec-path with this configuration.
It detects .tide and .tprefab, with basic highlighting, four-space C-style
indentation and comment editing. The name is separate from the TypeScript
package called tide.
To connect manually instead, omit the generated hook below and use M-x eglot
in a Tide buffer. To select another server, change tide-lang-server-command:
(setq tide-lang-server-command '("/path/to/tide/bin/tidels"))
;; The helper includes this for automatic connection:
(add-hook 'tide-lang-mode-hook #'eglot-ensure)Use M-. for definitions, M-? for references, C-M-i for completion, M-x eglot-rename and M-x eglot-format-buffer. See Eglot's setup guide for client configuration.
Vim and Neovim
Install with a plugin manager
The official tide-vim repository
works directly with Git-based plugin managers. In an existing vim-plug setup,
add this between plug#begin() and plug#end(), then run :PlugInstall:
Plug 'Tide-Engine/tide-vim'For lazy.nvim on Neovim 0.11+, add this plugin specification:
{
'Tide-Engine/tide-vim',
lazy = false,
config = function()
vim.lsp.enable('tidels')
end,
}Install Tide separately and put tidels on PATH. Use your plugin manager
to update the runtime and tide upgrade to update the compiler and server.
Plain Vim still needs a separately configured LSP client.
Use Tide's bundled runtime
Tide bundles the Tide Vim runtime for Vim 8+ and Neovim. Print the configuration for your editor:
tide ide vim
tide ide neovimCopy the Vim output into your vimrc (~/.vimrc, or ~/_vimrc on Windows),
or the Neovim output into init.lua (usually ~/.config/nvim/init.lua, or
%LOCALAPPDATA%/nvim/init.lua on Windows). Custom configurations can use the
same output in their own init file. Restart the editor after adding it.
Both .tide and .tprefab get highlighting, four-space C-style indentation
and comment settings. Interpolated strings have string highlighting throughout.
The Neovim configuration requires 0.11 or later and enables the supplied
language server configuration automatically, using this installation's full
tidels path. No nvim-lspconfig plugin or server lookup on PATH is needed.
To select another executable, call
vim.lsp.config('tidels', { cmd = { '/path/to/tide/bin/tidels' } }) before
enabling it. The configuration selects the nearest tide.packages, then a
CMake/Git root, then the source file's folder. Use K for hover,
:lua vim.lsp.buf.definition(), :lua vim.lsp.buf.rename() and
:lua vim.lsp.buf.format(). Neovim's :help lsp describes completion and
other client features; see its LSP guide.
Plain Vim needs a language server client of your choice. Register filetype
tide with the server command printed in the snippet's comments, over stdio.
The runtime does not install a client.
These setup helpers print configuration; they do not change your
init files. If you move Tide, generate the configuration again and replace the
old paths. tide editors installs the VS Code extension. Enable automatic server
startup only for projects you trust.
Choose either the package-manager copy or Tide's bundled copy of each mode;
loading both can make it unclear which version your editor is using.
Use tide run in a terminal for games.
The terminal integrations do not adapt the VS Code-specific clickable code-lens
commands.
Other editors
tide's editors folder holds the TextMate grammar (tide-syntax), a VS Code-style bundle, for highlighting in editors that load those. Any editor with a language server client can run tidels, from tide's bin folder, for everything else. It talks over stdin and stdout.