From aa547eabcd6f5faf303b1c7e8b063562a2d4c545 Mon Sep 17 00:00:00 2001 From: Stefan Bueringer Date: Fri, 29 Apr 2022 12:54:20 +0200 Subject: [PATCH] book: Add note about Tiltfile syntax highlighting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stefan Büringer buringerst@vmware.com --- docs/book/src/developer/tilt.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/book/src/developer/tilt.md b/docs/book/src/developer/tilt.md index a567515b6646..b1b324e19502 100644 --- a/docs/book/src/developer/tilt.md +++ b/docs/book/src/developer/tilt.md @@ -361,3 +361,16 @@ should monitor for changes. When a dependency is modified, Tilt rebuilds the pro machine**, copies the binary to the running container, and executes a restart script. This is significantly faster than rebuilding the container image for each change. It also helps keep the size of each development image as small as possible (the container images do not need the entire go toolchain, source code, module dependencies, etc.). + +## IDE support for Tiltfile + +For Intellij, Syntax highlighting for the Tiltfile can be configured with a TextMate Bundle. For instructions, please see: +[Tiltfile TextMate Bundle](https://github.com/tilt-dev/tiltfile.tmbundle). + +For VSCode the [Bazel plugin](https://marketplace.visualstudio.com/items?itemName=BazelBuild.vscode-bazel) can be used, it provides +syntax highlighting and auto-formatting. To enable it for Tiltfile a file association has to be configured via user settings: +```json +"files.associations": { + "Tiltfile": "starlark", +}, +```