Skip to content

weird x: and s: in my code. #2757

Answered by fbricon
crab-97 asked this question in Q&A
Oct 26, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

These are called inlay hints. Inlay hints add additional inline information to source code to help you understand what the code does.
Parameter name inlay hints show the names of parameters in function calls.

You can toggle inlay hints on/off globally by configuring editor.inlayHints.enabled. Other options are:
offUnlessPressed — Hold ctrl+alt / ctrl+option to see inlay hints
onUnlessPressed — Hold ctrl+alt / ctrl+option to hide inlay hints

Specifically for Java, you can configure java.inlayHints.parameterNames.enabled: Enable/disable inlay hints for parameter names. Supported values are:

  • none(disable parameter name hints),
  • literals(Enable parameter name hints only for literal argume…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@crab-97
Comment options

Answer selected by crab-97
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2755 on October 26, 2022 12:26.