Twitter: raymondcamden


Address: Lafayette, LA, USA

Eclipse Tip - Whitespace characters visible when they are turned off

04-30-2010 6,890 views 9 Comments

Ok, this is officially from the WTF Files. Today I somehow enabled whitespace characters in ColdFusion Builder.

No big deal, right? While I figured I'd have no chance in heck to remember what key combo I hit, I just went into my preferences and disabled it there. Except that....

What the heck? It isn't on. (And while I'm here - what in the hell is "Show affordance..." ?? I mean that has to be the most obscure setting ever. I'm afraid if I touch it a midget will come out of the closet and start talking backwards. In fact, I'm officially calling this the Twin Peaks setting.)

For the heck of it I turned it on and get this - the whitespace characters got darker!

Seeing it now I can tell that more stuff showed up as well, but on my PC there was a marked difference in color too. So there must be not one but two settings related to white space.

Thankfully Bob Silverberg shared the key combo I had hit - ctrl+..

By the way - if someone knows what this other setting is, please share. I know for a fact I'll do it again and I'll forget the key combo again.

Edited @orangeexception on Twitter shared with me the setting. Preferences/General/Keys - there is a Show Whitespace listed there. Now all it does it tell you the key combo. It isn't a preference per se. That seems kinda odd. Either way, if I do forget, which I will, hopefully I'll remember to look in the keys.

9 Comments

  • Commented on 04-30-2010 at 2:33 PM
    I personally prefer to see whitespace characters. You can see that my text editor, Editplus, doesn't show carriage returns (that's an extra setting) but it does show tabs and spaces. That's super helpful for me. I wish CFBuilder did that.
  • Commented on 04-30-2010 at 2:34 PM
    Ooops. Forgot the link.

    http://screencast.com/t/ZGU2NWI0MT
  • Commented on 04-30-2010 at 2:36 PM
    Even though I won't use the feature, what bugged me most is that it seems to be some "invisible" (get it ;) setting. You can only toggle it with a key, not a normal checkbox.
  • Commented on 04-30-2010 at 3:41 PM
    Agreed, it is pretty invisible. I hate stupid cont+.
  • garence #
    Commented on 08-23-2010 at 7:57 AM
    CTRL+. worked like a charm. Thanks for the solution, Ray, and good luck with the midget.
  • Ivan #
    Commented on 09-14-2010 at 9:33 AM
    The setting is actually Show Whitespace Characters for the text editors and is separate from Show Whitespace used by the HTML/CFML editors in Builder/Eclipse. To get the button to appear you would need to open a document with the Text editor. The CFML one is available through the customization menu. Once set, both settings work across editor types regardless of what you open.
  • Commented on 04-11-2011 at 10:39 AM
    On a Mac, the key combination to show/hide whitespace characters is ?. (Command-dot).
  • Commented on 10-20-2011 at 1:52 PM
    I just did that and I'm glad you wrote this =)
  • Commented on 03-29-2012 at 4:18 AM
    Thanks for this Ray - I spent half an hour trying to get rid of those bloody whitespace characters! :)

    Others who have this problem might want to note that the shortcut is "ctrl+." (including the dot).

Post Reply

Please refrain from posting large blocks of code as a comment. Use Pastebin or Gists instead. Text wrapped in asterisks (*) will be bold and text wrapped in underscores (_) will be italicized.

Leave this field empty