You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the solution you'd like
Do we want to add something like the Snippets action from Xcode where users can save snippets of their code and use it later or in the future.
It's important that these files can be easily backed up automatically by CodeEdit or that they are in a straightforward location so that they can easily be added to other computers and shared.
It's important that these files can be easily backed up automatically by CodeEdit or that they are in a straightforward location so that they can easily be added to other computers and shared.
I was thinking json too but wasn't to sure if it would work but since it does it would suggest json because it can provide a lot of performance enchantments
@jasonplatts that is a good resource! We might be able to find code that will help us to parse the json and process the variables specified in that documentation link.
Lots of good stuff there to help with the extensions API too @austincondiff. If we can keep the process of extension development similar, we should be able to port a lot over and encourage devs to contribute.
@jasonplatts We should at some point reach out to extension developers of other platforms and see if they can A) help us with the extension API, and B) help us write extensions.
For sure! I've reached out to some already and I have a few others in mind too. If anyone is able to themselves contribute or knows of anyone else who might be interested, please spread the word! This issue, #76, provides a general overview.
Thanks for your contributions and hard work! I am also trying to get into the details of the API. It's work in progress, but please feel free to add to the list that is started here, #76.
@jasonplatts Why don't we save the basic information of the snippets in the json like name, description, method, platform and completion then the code we add it to it's respective file so if the code is java it would be snippet_name.java and then add the path of the file in the json?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Activity
austincondiff commentedon Mar 22, 2022
Absolutely! Here are a few considerations...
nanashili commentedon Mar 22, 2022
We can use a local database maybe or something similar.
When highlighting the code we can right click to add to snippets
jasonplatts commentedon Mar 22, 2022
I might suggest storing them in a JSON file like VS Code, https://code.visualstudio.com/docs/editor/userdefinedsnippets. The same code can then also be used by snippet extensions written by developers and shared on the "marketplace".
It's important that these files can be easily backed up automatically by CodeEdit or that they are in a straightforward location so that they can easily be added to other computers and shared.
nanashili commentedon Mar 22, 2022
I was thinking json too but wasn't to sure if it would work but since it does it would suggest json because it can provide a lot of performance enchantments
austincondiff commentedon Mar 22, 2022
@jasonplatts that is a good resource! We might be able to find code that will help us to parse the json and process the variables specified in that documentation link.
jasonplatts commentedon Mar 22, 2022
Lots of good stuff there to help with the extensions API too @austincondiff. If we can keep the process of extension development similar, we should be able to port a lot over and encourage devs to contribute.
austincondiff commentedon Mar 22, 2022
@jasonplatts We should at some point reach out to extension developers of other platforms and see if they can A) help us with the extension API, and B) help us write extensions.
nanashili commentedon Mar 22, 2022
I'm currently working on the design of it.
jasonplatts commentedon Mar 22, 2022
For sure! I've reached out to some already and I have a few others in mind too. If anyone is able to themselves contribute or knows of anyone else who might be interested, please spread the word! This issue, #76, provides a general overview.
nanashili commentedon Mar 22, 2022
We can have a basis of it already by select code in the editor and then saving it. Will most like push it once we have a custom editor
jasonplatts commentedon Mar 22, 2022
Thanks for your contributions and hard work! I am also trying to get into the details of the API. It's work in progress, but please feel free to add to the list that is started here, #76.
nanashili commentedon Mar 23, 2022
Here is a template of the Snippets View
Screen.Recording.2022-03-23.at.13.21.48.mov
nanashili commentedon Mar 23, 2022
@jasonplatts Why don't we save the basic information of the snippets in the json like name, description, method, platform and completion then the code we add it to it's respective file so if the code is java it would be snippet_name.java and then add the path of the file in the json?
2 remaining items
jasonplatts commentedon Mar 23, 2022
I agree. That is definitely a valid concern.
[-][FEAT] - Snippets[/-][+][FEAT] Snippets[/+][-][FEAT] Snippets[/-][+]✨ Snippets[/+]stale commentedon May 30, 2022
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
[chore]: Update CodeEditLanguages to `0.1.13` (CodeEditApp#167)
austincondiff commentedon Dec 11, 2024
Closed in favor of #1623