InlayHints
- class InlayHints
Options for inlay hints.
SysML models contain extensive implicit state which is hard to track manually. Inlay hints display some of this state as a virtual text inserted into the code.
While the hints may be useful, there can be a lot of them. Unlike regular text, inlay hints cannot be navigated to via keyboard hence they may make source editing harder and more frustrating. To counter this, this table contains fine-grained editor-agnostic control over which hints are shown, cascading
toggleproperties can be used to control groups of inlay hints.Because inlay hints are a user preference, user-specific configuration is the recommended place for configuring them, either globally or per-project. See config file discovery for more details.
Further, Visual Studio Code contains and
editor.inlayHints.enabledconfiguration option. It is recommended to set it toonUnlessPressedoroffUnlessPressedto have them globally on or off at the press of a button. See Inlay Hints for more details. While not explicitly stated, the default keyboard shortcuts for inlay hints areCtrl + Alton Windows and Linux, andControl + Optionon macOS.Members defined in
InlayHints(8 members)
RWWhether to show the
constantkeyword on implicitly constant features in SysML.
RWInlay hint options for effective names.
RWWhether to show implicit expose visibility (
protected).
RWOptions for implicit specialization hints.
RWWhether to show the other imported name on membership imports.
RWWhether to show the
refkeyword on non-composite features in SysML.
RWToggle for all nested options.
Attributes
- property constant: syside.conf.ConstantHint
Whether to show the
constantkeyword on implicitly constant features in SysML.part def P { //* constant */ end e; }
- property effective_names: syside.conf.EffectiveNameHints
Inlay hint options for effective names.
- property expose_visibility: bool
Whether to show implicit expose visibility (
protected).view V { //* protected */ expose V; }
- property implicit_specializations: syside.conf.ImpliedHeritageHints
Options for implicit specialization hints.
attribute x //* :> dataValues */;
- property membership_import_names: bool
Whether to show the other imported name on membership imports.
package <short> long; private import //* <short> */ long; private import //* < */ short //* > long */;
- property ref: syside.conf.RefHint
Whether to show the
refkeyword on non-composite features in SysML.part def P { //* ref */ attribute a; }
- property toggle: syside.conf.Toggle
Toggle for all nested options.
onenables the default behaviouroffdisables the default behaviour and all nested optionsexplicitdisables the default behaviour. Same asonif there is no default behaviour not covered by nested options.
Methods
- __init__() None