Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show whitespace only on selected text in IntelliJ IDEs?

Like how it is in Sublime Text. Currently I've only found the ability to show whitespace permanently.

like image 801
user3761308 Avatar asked Jan 11 '17 10:01

user3761308


1 Answers

This is currently not possible. Please vote for this feature request.

Update: An interesting trick to get the desired effect has been posted in the feature request.

  1. Enable Show whitespaces in File | Settings | Editor | General | Appearance
  2. Set the Text | Whitespaces foreground color to be the same as the editor background color in File | Settings | Editor | Colors & Fonts | General

Result: Whitespace is invisible by default, but when the text is selected the background color will change and the whitespace becomes visible.

like image 128
Bas Leijdekkers Avatar answered Nov 18 '22 12:11

Bas Leijdekkers