This extension provides support for Yseop Markup Language (YML).
- For common YML code
- For text granules and inside them
\amount
: Display amount\beginList
: Static List\beginQuote
: Text placed between quotes\beginStyle
: Styled text or Text using a custom style\beginSynonym
: List of alternativesbold
: Bold text\case
: A case in a “switch” statement\choice
: An alternative in a list of synonymscomplete
: Complete an instance with values\endOfLine
: Force end of linefield
: Yml class attribute\foreach
: “For each” loop or “For each” loop with assembly IDfunction
: Function or Function with custom args or Function with direct returngranule
: Text granule\if
: “If” condition\if \else
: “If/else” conditioninstance
: Object instanceinterface
: Interfaceitalic
: Italic text\nextItem
: An item in a static list\noContraction
: Prevent contraction\notEmptyString
: Make sure a string is not considered empty\nounPhrase
: Noun phrasenumeralStyle
: Display style for numbers\recipientAction
: Verb using a second person subject or Verb using a second person subject, with adjectiveround
: Number rounding\senderAction
: Verb using a first person subject or Verb using a first person subject, with adjective\switch
: Handle values differentlysynonyms
: List of alternativesTextFunction
: Text function or Text function with custom argumentstextu
: Textualization attribute\thirdAction
: Verb using a third person subject\value
: Display a value\verb
: Verb
When you start typing a snippet's prefix, the editor should suggest corresponding snippets.
Visual Studio Code uses “tabstops” within snippets in places where code must be written to fill in the blanks. As their name suggest, you can use the tab key to go to the next tabstop.
Some tabstops are associated with a list of predefined values. To use one of them, you can select it using the arrow keys and press Enter
before using the tab key to proceed as usual if need be.
(Needs the class to be opened at least once.)
- This feature uses the parameter
yseopml.pathToPredefinedObjectsXml
to get the absolute path to thepredefinedObjects.xml
file provided with one of the user's Yseop Engine version's. - To edit VS Code's settings, use the shortcut
Ctrl + ,
or look forPreferences: Open Settings
in the command palette. - Here, you must add a key / value pair in the JSON file that holds your custom settings and save:
"yseopml.pathToPredefinedObjectsXml": "/home/USER/…/yseop-engine-X.X.X/predefinedObjects.xml"
- You should then see suggestions like
IntegerInterval
orStringBuffer
when you edit YML code.