Custom 'Snippets' in '.mac' routines.
Today we have only 'Snippets' to classes:
how i can custom this Snippets to show my labels or variables of atual routine?
Product version: Caché 2018.1
$ZV: Cache for Windows (x86-64) 2018.1.2 (Build 309U) Mon Mar 4 2019 15:05:44 EST
@Sean Connelly shared a tip on how to enable auto-complete for macros.
No idea about routines though.
this tip he gave for what I understood is only for macros, I'm looking for this auto complete for everything in the variable routine, rules, methods ...
But I still thank you!
The VS Code docs on IntelliSense and Code Snippets should help provide more information:
You may want to take a look at the IntelliSense features you have enabled in VS Code now. You can do that by searching your User and Workspace preferences for 'IntelliSense'. You can also hit Ctrl+Space while coding to get autocomplete suggestions.
Do you have a more specific example of the autocomplete feature you are looking for? When I am working in a routine that has been compiled with a HelloWorld entry point, I can see the following as I'm writing ObjectScript code:
After I set a variable I can see autocomplete options including that variable:
I really wanted that these snippets that we have in classes also appear in macro routines, and this within the native studio of the cache (because this is the only point I haven't been able to customize yet)
.png)
.png)
In .cls
In .mac
Ah thanks for clarifying. I use VS Code ObjectScript myself so am not sure about Studio customization. Maybe a more frequent Studio user will have a suggestion for you, but I'm not sure that this is possible.