Workspace-level snippets #32854
Replies: 3 comments 1 reply
-
|
I think this is for issue not for discussion, because the idea of config in workspaces is to overwrite the main config. |
Beta Was this translation helpful? Give feedback.
-
|
I'd love to see that as well, working with colleagues, it's nice having the ability to easily share snippets that can help with boilerplate code (eg: generating the code for a new React component, with some basic props). We often have snippets specific for the tech stacks used in a specific project (eg: generating boilerplate code for CMS X or Y) and/or various versions of the same snippet based on the frameworks versions used in each projects (eg: a Next.js with app router project, versus a Next.js using pages router). Having the ability to add to the user-level defined snippets via snippet defined in the workspace would be awesome. |
Beta Was this translation helpful? Give feedback.
-
|
I would wager it's possible to hack something together by configuring https://github.com/zed-industries/simple-completion-language-server/tree/main per project using the project settings file. Ref: https://zed.dev/docs/snippets?highlight=snippets#see-also |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
We'd like to track our snippets in git for our project.
From what I can tell, currently only user-level snippets are taken into account (
~/.config/zed/snippets), but not workspace-level ones ($ZED_WORKTREE_ROOT/.zed/snippets/*.json)Beta Was this translation helpful? Give feedback.
All reactions