Search code examples
eclipsekeyboard

Cannot insert tilde in Eclipse for C/C++


In Eclipse for C/C++ on Windows 10, I cannot insert the tilde symbol '~' which works fine in other applications. I'm on a french keyboard, so I type Alt Gr + '~' to access it ('~' key is also the one for 'é' and '2'). I saw similar problems with curly braces or asterisks, resolved by deactivating a given shortcut, but I saw none for tildes.

I searched in the shortcuts of eclipse, but found none using '~' key with alt gr (even none with '~' key and alt or ctrl or something else).

Thank you in advance


Solution

  • By typing Alt+keys 0 to 9 from numeric pad to compose values from 1 to 255 or 0128 to 0255 (list of codes and corresponding characters), it's possible to enter a few characters which are not available on the keyboard:

    • ~ : use Alt+126
    • ` : use Alt+96