-
Notifications
You must be signed in to change notification settings - Fork 17
Adding Snippets for Concerto language #38
Comments
I am working on this. |
Could you explain what this is? I'm not familiar with "snippets". |
Some example like you want to create classes in .cto file then you have to write
what code snippets do is, you don't have to write the asset again and again. You just type assets and press tab a sample format of assets is provided to you. You can navigate through the tab and just write the name for that asset. You can find code snippets for any framework like react js, Angular, Bootstrap and many more. I will attach a gif that explains what is code snippets for concerto language. |
@jeromesimeon Here is the Gif :) |
provide me a standard .cto file so that I can do according the file? |
I quite like this idea. I would like a bit more details on what the requirements are:
Also I think I would like some UX review and get a sense of how it would affect the user experience, help or get in the way, etc. Maybe it's worth putting draft code around this on a branch? |
Not sure what a standard would be, but there are many examples in : https://models.accordproject.org Or do you mean something else? |
@jeromesimeon Yeah I can do according to models. Thanks |
I have implemented the field names using the concerto class and continuing this will be a good idea because we can provide snippets only if we know the class structure provided by concerto language. I am unable to understand the 2nd question related to types. It is totally new feature It has nothing related to #36. For adding IntelliSense we need to discuss. sorry fo the previous comment I am using my brother laptop and forget to log in my account. You know chrome autosaving stuff :) |
@jeromesimeon Regarding user experience almost every language plugin provides snippets. It can be seen as when you are writing lots of the class name in model .cto file then you don't have to type transaction, concept, assets, abstract asset every time. I have already created a pr for this #39. If you have any more question please! tell me :) |
@jeromesimeon Do You need any more information. Do you have any question regarding this I will be happy to discuss with you :) |
Nice work - I think this would be a useful addition to Concerto, and for Ergo as well. |
@dselman can you give me some pointer regarding #36 I researched a bit about adding IntelliSense to vscode for concerto language. I saw a different project like adding IntelliSense like c++, javascript and typescript. But they provide IntelliSense using LSP(I think). I am learning what LSP is and how it works. Can you explain something about it? please!!!! |
Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
Snippets for model.cto file.
The text was updated successfully, but these errors were encountered: