Makoto
Makoto

Reputation: 106508

Is there a way to change the type of a scratch file in IntelliJ while in Distraction Free Mode?

I'm loving the fact that I can create scratch files on the fly in IntelliJ, but I'm noticing a caveat - I can't change the type of the scratch file while I'm in Distraction Free mode.

I'm well aware that I can use the status bar to switch it around, but if I'm in distraction free mode, I can't see it specifically (even when I double-tap ALT to view the status bar).

Is there a way for me to be able to switch out the language of a scratch file without having to disable distraction free mode?

Upvotes: 2

Views: 711

Answers (1)

Javaru
Javaru

Reputation: 32026

Note: this only applies to IntelliJ 15 and newer, or JetBrains IDEs that are based on IntelliJ 15 or newer.


Two options for you:

OPTION 1

  1. Open the Find Action dialog via Ctrl+Shift+A / S
  2. Search for "Change File Language"
  3. Select "Change File Language" in the pop-up

OPTION 2

Map a keyboard (or mouse) shortcut to the "Change File Language" action in Settings > Keymap > Other > Change File Language and use it to invoke the action.

Upvotes: 3

Related Questions