IntelliJ IDEA 2026.2 Help

X-Ray mode

X-Ray Mode helps you keep your editor uncluttered without losing access to valuable code insights. You can temporarily reveal all inlay hints and additional information: press Ctrl twice and keep holding it.

Configure inlay hints and other supplementary information to the level you're comfortable with. When you need more context, press Ctrl twice and keep holding it. X-Ray Mode will display hints and additional information for as long as the key remains pressed, then hide them again when you release it.

Configure X-Ray mode hints

  1. Press Ctrl+Alt+S to open settings and then select Languages & Frameworks | Scala | X-Ray Mode.

  2. Toggle each type of hint on or off as needed.

    X-Ray settings

If you want to see hints in the editor all the time regardless of X-Ray Mode, you can configure them separately:

The X-Ray mode is also an alternative to two other actions:

  • View | Show Implicit Hints (Ctrl+Alt+Shift+=). Learn more from Implicit hints.

  • View | Type Info (Ctrl+Shift+P). Learn more from Type Info.

In both cases, instead of memorizing the shortcuts for each action, you can press Ctrl. On top of that, types displayed in hints are navigable: while pressing Ctrl, hover over them and navigate to the type declaration.

16 June 2026