-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Snippets do not retain spacing and formatting #18481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
1 task
1 task
Note, additional examples that should be validated when fixing this issue: |
mgsloan
added a commit
that referenced
this issue
Jun 3, 2025
Closes #18481 Release Notes: - Snippet insertions now preserve leading whitespace instead of using language-specific auto-indentation.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Check for existing issues
Describe the bug / provide steps to reproduce it
When snippets are expanded, the spacing / formatting defined in the snippet.json is ignored, the expanded snippets only apply spaces once
see screenshot and recording below
this screenshot shows my defined snippets in a tsx.json file in the snippets directory, notice the way the snippet code is formatted
here is a video recording showing me attempting to use said snippets, notice how when expanded they do not have the same spacing / formatting
https://www.loom.com/share/eb3fd3452c764fbcb46418705429ce24?sid=21fe77c5-978d-4264-a66f-0bc12a0ee7c4
Environment
Zed: v0.154.3 (Zed)
OS: macOS 15.0.0
Memory: 32 GiB
Architecture: aarch64
If applicable, attach your
~/Library/Logs/Zed/Zed.log
file to this issue.Zed.log
The text was updated successfully, but these errors were encountered: