On Nov 1, 2021, at 1:44 PM, Sam_L <lennon_s_j@xxxxxxxxxxx> wrote:
In that same link there is this, which tells how to list all available snippets:
"You can see the available snippets for a language by running the Insert Snippet command in the Command Palette to get a list of the snippets for the language of the current file. However, keep in mind that this list also includes user snippets that you have defined, and any snippets provided by extensions you have installed."
Command Palette is F1.
Now that doesn't show the underlying code. But for a quick and dirty look, go to https://github.com/NielsLiisberg/RPG-for-VSCode. Click Code, then you can browse the underlying code.
I use VS Code but I'm not an expert. I also use the Code for IBM i extension and I know it currently has virtually all the functions (%xxx,,,) defined as snippets. And they are all defined in a separate file which is part of the extension. I beleive the contributor plans to add some logic constructs when he finds time.
Having said that, but not yet done it myself, I believe that if you define your own snippets they won't be blown away by an update to the extension.
Not sure what happens if your own snippet is a duplicate of a provided one.
-------- Forwarded Message --------
Subject: Re: Visual Studio Code
Date: Sun, 31 Oct 2021 16:17:57 -0400
From: Jon Paris
Yes and no Sam.
It shows me where I can add my own - but it doesn't show me the ones that were added by Niels' extension and those are the ones I would like to study and potentially modify.
On Oct 31, 2021, at 12:27 PM, Sam_L <lennon_s_j@xxxxxxxxxxx> wrote:
Does this link help?
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.