Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
docs: Add note about escaping `$` in snippets (#48710)
CJ Pokowitze4ea8ae3b9f4
diff --git a/docs/src/snippets.md b/docs/src/snippets.mdindex b659269ba6f..8d663372b89 100644--- a/docs/src/snippets.md+++ b/docs/src/snippets.md@@ -18,6 +18,7 @@ The snippets are located in `~/.config/zed/snippets` directory to which you can// Use placeholders like $1, $2 or ${1:defaultValue} to define tab stops.// The $0 determines the final cursor position.// Placeholders with the same value are linked.+ // If the snippet contains the $ symbol outside of a placeholder, it must be escaped with two slashes (e.g. \\$var)."Log to console": {"prefix": "log","body": ["console.info(\"Hello, ${1:World}!\")", "$0"],