Contextual Menu Actions in YAML Documents
In addition to the usual text editing actions being available in the YAML
editor, it also includes some unique editor-specific actions available in the contextual
menu:
- Cut, Copy, Paste
- Executes the typical editing actions on the currently selected content.
- Copy JSON Pointer
- Creates a JSON Pointer at the current cursor location and copies the expression that denotes the JSON pointer to the system clipboard.
- Copy XPath
- Copies the XPath expression of the current property from the current editor to the clipboard.
- Toggle Line Wrap (Ctrl + Shift + Y (Command + Shift + Y on macOS))
- Enables or disables line wrapping. When enabled, if text exceeds the width of the displayed editor, content is wrapped so that you do not have to scroll horizontally.
- Toggle Line Comment (Ctrl + ForwardSlash (Command + ForwardSlash on macOS))
- Allows you to comment (or uncomment) the current selection (or current line if no content is selected) in the YAML document you are editing.