diff --git a/docs/src/snippets.md b/docs/src/snippets.md index b659269ba6f2ab38f38e99695588e1e4c8464dee..8d663372b8983801efb2405c17f2f580ebbf6e97 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"],