× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




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.

Sam

-------- 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.


Jon Paris

> On Oct 31, 2021, at 12:27 PM, Sam_L <lennon_s_j@xxxxxxxxxxx> wrote:
>
> Does this link help?
>
> https://code.visualstudio.com/docs/editor/userdefinedsnippets#_create-your-own-snippets




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.