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



Hello gentlemen

I am just at the CEC 2021 conference, so I will give you all an update when
I come back. Both link to the source and how to create your own snippets..
so they will not be overwritten when you update to the next version that
also include “monitor” snippets..

Again thank you so much for your interest

man. 1. nov. 2021 kl. 22.55 skrev Jon Paris <jon.paris@xxxxxxxxxxxxxx>:

Thanks Sam,

I did go all the way through that process but the snippets added by Niels
don't show up - just an empty placeholder comment block for RPG code which
I assume was placed there by the Code fro IBM i extension.

Not to worry - when I need it I'll play with it and get it sorted.


Jon P.

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.

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



--
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,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

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

--
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,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

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.

This thread ...

Replies:

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.